mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-20 01:54:49 +00:00
c2c73189c8
Co-authored-by: Adrian <adrian.iosdev@gmail.com>
11 lines
461 B
Text
11 lines
461 B
Text
error: you are using an explicit closure for cloning elements
|
|
--> $DIR/min_rust_version.rs:74:26
|
|
|
|
|
LL | let _: Option<u64> = Some(&16).map(|b| *b);
|
|
| ^^^^^^^^^^^^^^^^^^^^^ help: consider calling the dedicated `cloned` method: `Some(&16).cloned()`
|
|
|
|
|
= note: `-D clippy::map-clone` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::map_clone)]`
|
|
|
|
error: aborting due to 1 previous error
|
|
|