From 723b47a3780c0a1c692edc445ab770d8a3dcf3ca Mon Sep 17 00:00:00 2001 From: Kirpal Grewal Date: Tue, 19 Nov 2024 10:36:07 +0000 Subject: [PATCH] lint for tests --- tree_arena/tests/basic_tests.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tree_arena/tests/basic_tests.rs b/tree_arena/tests/basic_tests.rs index cecea9d0f..51dccc57c 100644 --- a/tree_arena/tests/basic_tests.rs +++ b/tree_arena/tests/basic_tests.rs @@ -94,6 +94,10 @@ fn mem_swap() { let node_2_item = node_2.item; *node_1_item = 'c'; *node_2_item = 'd'; + #[expect( + clippy::drop_non_drop, + reason = "Drop glue may be added for future trees, and may differ between safe and unsafe versions" + )] drop(node_2.children); assert_eq!(*node_1_item, 'c', "Node 1 item should be 'c'"); assert_eq!(*node_2_item, 'd', "Node 2 item should be 'd'");