We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b5f55b7 commit d7a22f2Copy full SHA for d7a22f2
library/std/src/sys/sgx/rwlock/tests.rs
@@ -38,6 +38,6 @@ fn test_c_rwlock_initializer() {
38
zero_stack();
39
let mut init = MaybeUninit::<RWLock>::zeroed();
40
rwlock_new(&mut init);
41
- assert_eq!(mem::transmute::<_, [u8; 144]>(init.assume_init()).as_slice(), RWLOCK_INIT)
+ assert_eq!(&mem::transmute::<_, [u8; 144]>(init.assume_init())[..], RWLOCK_INIT)
42
};
43
}
0 commit comments