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