mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 21:53:23 +00:00
9716a9eff0
if msrv < 1.36, the message tells , but the suggestion is
10 lines
388 B
Text
10 lines
388 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`
|
|
|
|
error: aborting due to previous error
|
|
|