summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2016-11-01 20:59:31 +0100
committerGitHub <noreply@github.com>2016-11-01 20:59:31 +0100
commite70fdc63c8f566039cf3f1afa910fa1a47430415 (patch)
treef4fffd3b09a76af418035e98b323d4eb43298f3d
parent13c57aa0cea1071accb00248f28537bf4288af13 (diff)
parent9ae091babec3e0bda51945b4d79b5fd2636aae6c (diff)
downloadimag-e70fdc63c8f566039cf3f1afa910fa1a47430415.zip
imag-e70fdc63c8f566039cf3f1afa910fa1a47430415.tar.gz
Merge pull request #828 from matthiasbeyer/libimagentrytag/remove-impl-tagable-on-fle
Remove impl Tagable for FileLockEntry, as Deref{Mut,} does this for us
-rw-r--r--libimagentrytag/src/tagable.rs33
1 files changed, 1 insertions, 32 deletions
diff --git a/libimagentrytag/src/tagable.rs b/libimagentrytag/src/tagable.rs
index 21e7c5e..bff7793 100644
--- a/libimagentrytag/src/tagable.rs
+++ b/libimagentrytag/src/tagable.rs
@@ -17,12 +17,9 @@
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//
-use std::ops::Deref;
-use std::ops::DerefMut;
-
use itertools::Itertools;
-use libimagstore::store::{Entry, EntryHeader, FileLockEntry};
+use libimagstore::store::{Entry, EntryHeader};
use libimagerror::into::IntoError;
use error::TagErrorKind;
@@ -175,31 +172,3 @@ impl Tagable for Entry {
}
-impl<'a> Tagable for FileLockEntry<'a> {
-
- fn get_tags(&self) -> Result<Vec<Tag>> {
- self.deref().get_tags()
- }
-
- fn set_tags(&mut self, ts: &[Tag]) -> Result<()> {
- self.deref_mut().set_tags(ts)
- }
-
- fn add_tag(&mut self, t: Tag) -> Result<()> {
- self.deref_mut().add_tag(t)
- }
-
- fn remove_tag(&mut self, t: Tag) -> Result<()> {
- self.deref_mut().remove_tag(t)
- }
-
- fn has_tag(&self, t: TagSlice) -> Result<bool> {
- self.deref().has_tag(t)
- }
-
- fn has_tags(&self, ts: &[Tag]) -> Result<bool> {
- self.deref().has_tags(ts)
- }
-
-}
-