Skip to content

Commit

Permalink
lint for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
KGrewal1 committed Nov 22, 2024
1 parent 8a0b246 commit 723b47a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tree_arena/tests/basic_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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'");
Expand Down

0 comments on commit 723b47a

Please sign in to comment.