diff --git a/libimagnotes/src/note.rs b/libimagnotes/src/note.rs index 46ac6c95..bd6b2f2d 100644 --- a/libimagnotes/src/note.rs +++ b/libimagnotes/src/note.rs @@ -161,6 +161,16 @@ impl<'a> FromStoreId for Note<'a> { } +impl<'a> Deref for Note<'a> { + + type Target = FileLockEntry<'a>; + + fn deref(&self) -> &FileLockEntry<'a> { + &self.entry + } + +} + pub struct NoteIterator<'a> { store: &'a Store, iditer: StoreIdIterator,