Use new StoreId::is_in_collection() interface

This commit is contained in:
Matthias Beyer 2016-09-02 17:16:19 +02:00
parent 4da331f990
commit 3c31854e66

View file

@ -18,7 +18,8 @@ impl IsInDiary for Entry {
impl IsInDiary for StoreId { impl IsInDiary for StoreId {
fn is_in_diary(&self, name: &str) -> bool { fn is_in_diary(&self, name: &str) -> bool {
self.is_in_collection(&["diary", name]) use std::path::PathBuf;
self.is_in_collection(&PathBuf::from(format!("diary/{}", name)))
} }
} }