Merge pull request #679 from matthiasbeyer/libimagdiary-is-in-diary-with-storeid-is-in-collection
libimagdiary cleanup
This commit is contained in:
commit
8e779fc87e
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ impl IsInDiary for Entry {
|
|||
impl IsInDiary for StoreId {
|
||||
|
||||
fn is_in_diary(&self, name: &str) -> bool {
|
||||
self.to_str().map(|s| s.contains(name)).unwrap_or(false)
|
||||
self.is_in_collection(&["diary", name])
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue