mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +00:00
ignore needless_lifetimes false positive
This commit is contained in:
parent
956a98c0c7
commit
01bb0f9e51
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue