diff options
author | David Tolnay <dtolnay@gmail.com> | 2024-01-11 20:34:42 -0800 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2024-01-11 20:34:48 -0800 |
commit | c9c26d5a2301d2a50aa3b7b90c3620ed205655e5 (patch) | |
tree | 86279cfbb5bf589fb3fbf8a1b8d018ab26aa2ac3 | |
parent | 4a46306996d413e1fa880ef82d80c3ac75c2951e (diff) | |
download | cxx-c9c26d5a2301d2a50aa3b7b90c3620ed205655e5.tar.gz |
Ignore map_clone clippy lint
warning: you are explicitly cloning with `.map()`
--> gen/cmd/src/app.rs:72:32
|
72 | let cxx_impl_annotations = matches
| ________________________________^
73 | | .get_one::<String>(CXX_IMPL_ANNOTATIONS)
74 | | .map(String::clone);
| |___________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#map_clone
= note: `-W clippy::map-clone` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::map_clone)]`
help: consider calling the dedicated `cloned` method
|
72 ~ let cxx_impl_annotations = matches
73 ~ .get_one::<String>(CXX_IMPL_ANNOTATIONS).cloned();
|
-rw-r--r-- | gen/cmd/src/main.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gen/cmd/src/main.rs b/gen/cmd/src/main.rs index 945a7fea..e4f8e903 100644 --- a/gen/cmd/src/main.rs +++ b/gen/cmd/src/main.rs @@ -9,6 +9,7 @@ clippy::into_iter_without_iter, clippy::items_after_statements, clippy::large_enum_variant, + clippy::map_clone, clippy::match_bool, clippy::match_on_vec_items, clippy::match_same_arms, |