From ded011b5b64621ee69b54dfc1d85d7d18b3befed Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Fri, 25 Mar 2016 16:38:09 +0100 Subject: [PATCH] lib: impl Edit 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 e6e59570..46ac6c95 100644 --- a/libimagnotes/src/note.rs +++ b/libimagnotes/src/note.rs @@ -3,6 +3,8 @@ use std::ops::{DerefMut, Deref}; use toml::Value; +use libimagrt::runtime::Runtime; +use libimagrt::edit::{Edit, EditResult}; use libimagstore::storeid::IntoStoreId; use libimagstore::storeid::StoreId; use libimagstore::storeid::StoreIdIterator; @@ -107,6 +109,14 @@ impl<'a> Note<'a> { } +impl<'a> Edit for Note<'a> { + + fn edit_content(&mut self, rt: &Runtime) -> EditResult<()> { + self.entry.edit_content(rt) + } + +} + impl<'a> Tagable for Note<'a> { fn get_tags(&self) -> TagResult> {