summaryrefslogtreecommitdiffstats
path: root/vendor/serde_ignored/tests/test.rs
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 02:49:50 +0000
commit9835e2ae736235810b4ea1c162ca5e65c547e770 (patch)
tree3fcebf40ed70e581d776a8a4c65923e8ec20e026 /vendor/serde_ignored/tests/test.rs
parentReleasing progress-linux version 1.70.0+dfsg2-1~progress7.99u1. (diff)
downloadrustc-9835e2ae736235810b4ea1c162ca5e65c547e770.tar.xz
rustc-9835e2ae736235810b4ea1c162ca5e65c547e770.zip
Merging upstream version 1.71.1+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/serde_ignored/tests/test.rs')
-rw-r--r--vendor/serde_ignored/tests/test.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/vendor/serde_ignored/tests/test.rs b/vendor/serde_ignored/tests/test.rs
index 414fe691b..ce7a2bf21 100644
--- a/vendor/serde_ignored/tests/test.rs
+++ b/vendor/serde_ignored/tests/test.rs
@@ -1,3 +1,9 @@
+#![allow(
+ clippy::derive_partial_eq_without_eq,
+ clippy::from_iter_instead_of_collect,
+ clippy::zero_sized_map_values
+)]
+
use serde::Deserialize;
use serde_derive::Deserialize;
use std::collections::{BTreeMap as Map, BTreeSet as Set};
@@ -16,7 +22,7 @@ where
})
.unwrap();
- let expected = Set::from_iter(expected.into_iter().cloned().map(str::to_owned));
+ let expected = Set::from_iter(expected.iter().copied().map(str::to_owned));
assert_eq!(unused, expected);
value
@@ -24,6 +30,7 @@ where
#[derive(Debug, Deserialize)]
struct V {
+ #[allow(dead_code)]
used: (),
}
@@ -77,6 +84,7 @@ fn test_readme() {
fn test_int_key() {
#[derive(Debug, Deserialize)]
struct Test {
+ #[allow(dead_code)]
a: Map<usize, V>,
}