Skip to content

Commit

Permalink
Fix needless borrow
Browse files Browse the repository at this point in the history
With updated rust-vmm-ci we have more clippy lints to appease, this
commit fixes them up.

Signed-off-by: Patrick Roy <roypat@amazon.co.uk>
  • Loading branch information
roypat authored and alxiord committed Jan 27, 2023
1 parent 50c5df0 commit 732eb81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/primitives.rs
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,7 @@ mod tests {
_box: Box::new("Box".to_owned()),
};

bincode::serialize_into(&mut snapshot_mem.as_mut_slice(), &test_struct).unwrap();
bincode::serialize_into(snapshot_mem.as_mut_slice(), &test_struct).unwrap();

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

0 comments on commit 732eb81

Please sign in to comment.