From cdbb71cea2cb14d44c645887339121056c3980db Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Sat, 26 Mar 2016 19:37:54 +0100 Subject: [PATCH] impl Deref for Note --- libimagnotes/src/note.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) 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,