~matthiasbeyer/imag

d605f923bb005869341ddba05ab9ab7db9997328 — flip1995 1 year, 8 months ago c8a7aac
[No-auto] lib/entry/url: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
M lib/entry/libimagentryurl/src/iter.rs => lib/entry/libimagentryurl/src/iter.rs +1 -1
@@ 98,7 98,7 @@ impl OnlyUrlIter {
        OnlyUrlIter(UrlFilterIter(li, true))
    }

    pub fn urls<'a>(self, store: &'a Store) -> UrlIter<'a> {
    pub fn urls(self, store: &Store) -> UrlIter<'_> {
        UrlIter(self, store)
    }
}

M lib/entry/libimagentryurl/src/link.rs => lib/entry/libimagentryurl/src/link.rs +1 -1
@@ 136,7 136,7 @@ mod tests {

        match url {
            Value::String(ref s) => assert_eq!("http://google.de/", s),
            _ => assert!(false),
            _ => panic!(),
        }
    }


M lib/entry/libimagentryurl/src/linker.rs => lib/entry/libimagentryurl/src/linker.rs +0 -3
@@ 207,12 207,10 @@ mod tests {
        let link = match link_entry.get_header().read_string("url.uri") {
            Ok(Some(s)) => s,
            Ok(None) => {
                assert!(false);
                unreachable!()
            },
            Err(e) => {
                error!("{:?}", e);
                assert!(false);
                unreachable!()
            },
        };


@@ 236,7 234,6 @@ mod tests {
        let urls = match urls {
            Err(e) => {
                debug!("Error: {:?}", e);
                assert!(false);
                unreachable!()
            },
            Ok(urls) => urls.collect::<Vec<_>>(),