Skip to content

Commit 732eb81

Browse files
roypatalxiord
authored andcommitted
Fix needless borrow
With updated rust-vmm-ci we have more clippy lints to appease, this commit fixes them up. Signed-off-by: Patrick Roy <[email protected]>
1 parent 50c5df0 commit 732eb81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/primitives.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ mod tests {
654654
_box: Box::new("Box".to_owned()),
655655
};
656656

657-
bincode::serialize_into(&mut snapshot_mem.as_mut_slice(), &test_struct).unwrap();
657+
bincode::serialize_into(snapshot_mem.as_mut_slice(), &test_struct).unwrap();
658658

659659
let restored_state: TestCompatibility =
660660
Versionize::deserialize(&mut snapshot_mem.as_slice(), &vm, 1).unwrap();

0 commit comments

Comments
 (0)