[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:
parent
c8a7aacf99
commit
d605f923bb
3 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -136,7 +136,7 @@ mod tests {
|
|||
|
||||
match url {
|
||||
Value::String(ref s) => assert_eq!("http://google.de/", s),
|
||||
_ => assert!(false),
|
||||
_ => panic!(),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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<_>>(),
|
||||
|
|
Loading…
Reference in a new issue