From 8563e0d4fce801479315392525e5c77dbfaf14b9 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sun, 28 Aug 2016 14:18:29 +0200 Subject: [PATCH] Reimplement IsInDiary for StoreId with StoreId::is_in_collection() --- libimagdiary/src/is_in_diary.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libimagdiary/src/is_in_diary.rs b/libimagdiary/src/is_in_diary.rs index dfdd7169..9dd8b2cb 100644 --- a/libimagdiary/src/is_in_diary.rs +++ b/libimagdiary/src/is_in_diary.rs @@ -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]) } }