Merge pull request #679 from matthiasbeyer/libimagdiary-is-in-diary-with-storeid-is-in-collection

libimagdiary cleanup
This commit is contained in:
Matthias Beyer 2016-09-02 08:25:37 +02:00 committed by GitHub
commit 8e779fc87e

View file

@ -18,7 +18,7 @@ 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.to_str().map(|s| s.contains(name)).unwrap_or(false) self.is_in_collection(&["diary", name])
} }
} }