Skip to content

Commit 1aafb0d

Browse files
committed
lint
1 parent f7e8be4 commit 1aafb0d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/examples/nesting.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ use struct_patch::Patch;
33
#[cfg(feature = "status")]
44
use struct_patch::Status;
55

6+
#[allow(dead_code)]
67
#[cfg(feature = "nesting")]
78
#[derive(Clone, Debug, Default, Patch, PartialEq)]
89
#[patch(attribute(derive(Debug, Deserialize, PartialEq)))]

lib/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -424,6 +424,7 @@ mod tests {
424424
#[cfg(feature = "merge")]
425425
#[test]
426426
fn test_merge() {
427+
#[allow(dead_code)]
427428
#[derive(Patch)]
428429
#[patch(attribute(derive(PartialEq, Debug)))]
429430
struct Item {
@@ -461,6 +462,7 @@ mod tests {
461462
#[cfg(feature = "merge")]
462463
#[test]
463464
fn test_merge_nested() {
465+
#[allow(dead_code)]
464466
#[derive(Patch, PartialEq, Debug)]
465467
#[patch(attribute(derive(PartialEq, Debug, Clone)))]
466468
struct B {
@@ -470,6 +472,7 @@ mod tests {
470472
f: u32,
471473
}
472474

475+
#[allow(dead_code)]
473476
#[derive(Patch)]
474477
#[patch(attribute(derive(PartialEq, Debug)))]
475478
struct A {

0 commit comments

Comments
 (0)