Skip to content

Commit c9c26d5

Browse files
committed
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(); |
1 parent 4a46306 commit c9c26d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

gen/cmd/src/main.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
clippy::into_iter_without_iter,
1010
clippy::items_after_statements,
1111
clippy::large_enum_variant,
12+
clippy::map_clone,
1213
clippy::match_bool,
1314
clippy::match_on_vec_items,
1415
clippy::match_same_arms,

0 commit comments

Comments
 (0)