diff --git a/libimagdiary/src/is_in_diary.rs b/libimagdiary/src/is_in_diary.rs index 9dd8b2cb..f02904ec 100644 --- a/libimagdiary/src/is_in_diary.rs +++ b/libimagdiary/src/is_in_diary.rs @@ -18,7 +18,8 @@ impl IsInDiary for Entry { impl IsInDiary for StoreId { 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))) } }