2022-05-05 09:12:52 -05:00
|
|
|
error: you are using an explicit closure for cloning elements
|
2024-02-17 06:16:29 -06:00
|
|
|
--> tests/ui-toml/min_rust_version/min_rust_version.rs:74:26
|
2022-01-27 08:12:45 -06:00
|
|
|
|
|
|
|
|
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`
|
2023-08-01 07:02:21 -05:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::map_clone)]`
|
2022-01-27 08:12:45 -06:00
|
|
|
|
2023-11-21 11:08:42 -06:00
|
|
|
error: aborting due to 1 previous error
|
2022-01-27 08:12:45 -06:00
|
|
|
|