summaryrefslogtreecommitdiffstats
path: root/lib/entry
diff options
context:
space:
mode:
authorflip1995 <hello@philkrones.com>2019-08-27 10:50:45 +0200
committerMatthias Beyer <mail@beyermatthias.de>2019-08-28 18:18:40 +0200
commit1569442feee1b85ba5bdacabbbf3cc45f357bb3a (patch)
treef622dfc90ea665e42f3333e00251442ecfc2ad92 /lib/entry
parentc02e6580bea90055ca6b9725e182f3bb0daf7f37 (diff)
[Auto] lib/entry/tag: Fix Clippy warnings
Signed-off-by: flip1995 <hello@philkrones.com> Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'lib/entry')
-rw-r--r--lib/entry/libimagentrytag/src/tagable.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/entry/libimagentrytag/src/tagable.rs b/lib/entry/libimagentrytag/src/tagable.rs
index 55253314..51dd7c04 100644
--- a/lib/entry/libimagentrytag/src/tagable.rs
+++ b/lib/entry/libimagentrytag/src/tagable.rs
@@ -60,7 +60,7 @@ impl Tagable for Entry {
self.get_header()
.read_partial::<TagHeader>()?
.map(|header| {
- let _ = header.values
+ header.values
.iter()
.map(is_tag_str)
.collect::<Result<_>>()?;
@@ -88,7 +88,7 @@ impl Tagable for Entry {
}
fn add_tag(&mut self, t: Tag) -> Result<()> {
- let _ = is_tag_str(&t)?;
+ is_tag_str(&t)?;
let mut tags = self.get_tags()?;
debug!("Pushing tag = {:?} to list = {:?}", t, tags);
@@ -97,7 +97,7 @@ impl Tagable for Entry {
}
fn remove_tag(&mut self, t: Tag) -> Result<()> {
- let _ = is_tag_str(&t)?;
+ is_tag_str(&t)?;
let mut tags = self.get_tags()?;
tags.retain(|tag| *tag != t);