Skip to content

Commit 6366f17

Browse files
committed
Ignore clone_instead_of_copied pedantic clippy lint
Iterator::copied was introduced in Rust 1.35, whereas serde_test currently supports a minimum compiler version of 1.13. error: used `cloned` where `copied` could be used instead --> serde_test/src/de.rs:49:29 | 49 | self.tokens.first().cloned() | ^^^^^^ help: try: `copied` | note: the lint level is defined here --> serde_test/src/lib.rs:149:52 | 149 | #![cfg_attr(feature = "cargo-clippy", deny(clippy, clippy_pedantic))] | ^^^^^^^^^^^^^^^ = note: `#[deny(clippy::cloned_instead_of_copied)]` implied by `#[deny(clippy::pedantic)]` = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#cloned_instead_of_copied
1 parent 1120e5a commit 6366f17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

serde_test/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@
153153
#![cfg_attr(
154154
feature = "cargo-clippy",
155155
allow(
156+
cloned_instead_of_copied,
156157
empty_line_after_outer_attr,
157158
missing_docs_in_private_items,
158159
missing_panics_doc,

0 commit comments

Comments
 (0)