diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2016-03-25 16:38:09 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2016-03-26 16:43:33 +0100 |
commit | ded011b5b64621ee69b54dfc1d85d7d18b3befed (patch) | |
tree | 19a47553092484598b35560a060eaa0768503913 /libimagnotes | |
parent | 97d436db22046a51d38f50e614c6ae15dcf62576 (diff) |
lib: impl Edit for Note
Diffstat (limited to 'libimagnotes')
-rw-r--r-- | libimagnotes/src/note.rs | 10 |
1 files changed, 10 insertions, 0 deletions
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<Vec<Tag>> { |