ignore needless_lifetimes false positive

This commit is contained in:
Oliver Schneider 2017-07-04 16:07:33 +02:00 committed by GitHub
parent 956a98c0c7
commit 01bb0f9e51

View file

@ -158,6 +158,8 @@ fn show_version() {
println!("{}", env!("CARGO_PKG_VERSION"));
}
// FIXME: false positive for needless_lifetimes
#[allow(needless_lifetimes)]
fn has_prefix<'a, T: PartialEq, I: Iterator<Item = &'a T>>(v: &'a [T], itr: I) -> bool {
v.iter().zip(itr).all(|(a, b)| a == b)
}