[No-auto] lib/entry/url: Fix Clippy warnings

Signed-off-by: flip1995 <hello@philkrones.com>
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
This commit is contained in:
flip1995 2019-08-27 10:28:27 +02:00 committed by Matthias Beyer
parent c8a7aacf99
commit d605f923bb
3 changed files with 2 additions and 5 deletions

View file

@ -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)
}
}

View file

@ -136,7 +136,7 @@ mod tests {
match url {
Value::String(ref s) => assert_eq!("http://google.de/", s),
_ => assert!(false),
_ => panic!(),
}
}

View file

@ -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<_>>(),