From 1569442feee1b85ba5bdacabbbf3cc45f357bb3a Mon Sep 17 00:00:00 2001 From: flip1995 Date: Tue, 27 Aug 2019 10:50:45 +0200 Subject: [PATCH] [Auto] lib/entry/tag: Fix Clippy warnings Signed-off-by: flip1995 Signed-off-by: Matthias Beyer --- lib/entry/libimagentrytag/src/tagable.rs | 6 +++--- 1 file 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::()? .map(|header| { - let _ = header.values + header.values .iter() .map(is_tag_str) .collect::>()?; @@ -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);