~matthiasbeyer/imag

1569442feee1b85ba5bdacabbbf3cc45f357bb3a — flip1995 2 years ago c02e658
[Auto] lib/entry/tag: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
1 files changed, 3 insertions(+), 3 deletions(-)

M lib/entry/libimagentrytag/src/tagable.rs
M lib/entry/libimagentrytag/src/tagable.rs => lib/entry/libimagentrytag/src/tagable.rs +3 -3
@@ 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);