Skip to content

Commit 08a905e

Browse files
committed
Clippy cleanup: clippy::missing_transmute_annotations
1 parent 30d780b commit 08a905e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mockall/tests/mock_refmut_arguments.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ fn static_mut() {
4747
.withf(|x| *x == 5)
4848
.returning(|x| { *x = 42;} );
4949
// Safe because mock leaves scope before x
50-
unsafe { mock.bar(mem::transmute(&mut x)); }
50+
unsafe { mock.bar(mem::transmute::<&mut u32, &mut u32>(&mut x)); }
5151
assert_eq!(x, 42);
5252
}

0 commit comments

Comments
 (0)