Skip to content

Commit a806b0c

Browse files
committed
Fix Clippy: legacy_numeric_constants
Also, slightly improve upon 08a905e , by making the cast more explicit.
1 parent 3255f21 commit a806b0c

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 u32, &mut u32>(&mut x)); }
50+
unsafe { mock.bar(mem::transmute::<&mut u32, &'static mut u32>(&mut x)); }
5151
assert_eq!(x, 42);
5252
}

0 commit comments

Comments
 (0)