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);