Use new StoreId::is_in_collection() interface
This commit is contained in:
parent
4da331f990
commit
3c31854e66
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue