From c13e05a9077a5fb34413a138be2bdca3a174b6ed Mon Sep 17 00:00:00 2001 From: Alex Shelkovnykov Date: Sat, 20 May 2023 19:20:14 +0000 Subject: [PATCH] pma: fix toplevel_ref_arg linter warning --- rust/ares/src/snapshot/pma.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/ares/src/snapshot/pma.rs b/rust/ares/src/snapshot/pma.rs index 495a605..b4f3017 100644 --- a/rust/ares/src/snapshot/pma.rs +++ b/rust/ares/src/snapshot/pma.rs @@ -123,7 +123,7 @@ mod tests { unsafe { pma_init(path); - let ref mut stack = NockStack::new(8 << 10 << 10, 0); + let stack = &mut NockStack::new(8 << 10 << 10, 0); let root = IndirectAtom::new_raw(stack, 1, &0xffff_ffff_ffff_ffff).as_noun(); let eight = pma_malloc(8) as *mut u64; *eight = 0xdeadbeef;