Skip to content

Commit 5277f7c

Browse files
committed
cleanup, no need for usize conversion (debug artifact)
1 parent 4aed74f commit 5277f7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/erasable/tests/smoke.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn with_mut_fn_replacethis() {
7171
let boxed: Box<Big> = Default::default();
7272

7373
let mut erased: ErasedPtr = ErasablePtr::erase(boxed);
74-
let e1 = erased.as_ptr() as usize;
74+
let e1 = erased.as_ptr();
7575
unsafe {
7676
<Box<Big> as ErasablePtr>::with_mut(&mut erased, |bigbox| {
7777
let mut newboxed: Box<Big> = Default::default();
@@ -81,7 +81,7 @@ fn with_mut_fn_replacethis() {
8181
})
8282
}
8383

84-
let e2 = erased.as_ptr() as usize;
84+
let e2 = erased.as_ptr();
8585
assert_ne!(e1, e2);
8686

8787
// drop it, otherwise we would leak memory here

0 commit comments

Comments
 (0)