We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unnecessary_conversion_for_trait
unnecessary_conversion_for_trait recommends to remove the iter in the call to extend. But then xs would be unavailable for the call to println!.
iter
extend
xs
println!
fn main() { let xs = vec![[0u8; 16]]; let mut ys: Vec<[u8; 16]> = Vec::new(); ys.extend(xs.iter()); // ^^^^^^^ println!("{:?}", xs); }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
unnecessary_conversion_for_trait
recommends to remove theiter
in the call toextend
. But thenxs
would be unavailable for the call toprintln!
.The text was updated successfully, but these errors were encountered: