Skip to content

Commit c4f690c

Browse files
fix lint on test
1 parent 09491bd commit c4f690c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library/std/src/thread/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,10 @@ where
159159
let (tx, rx) = channel();
160160

161161
let x: Box<_> = Box::new(1);
162-
let x_in_parent = (&*x) as *const i32 as usize;
162+
let x_in_parent = &*x as *const i32 as usize;
163163

164164
spawnfn(Box::new(move || {
165-
let x_in_child = (&*x) as *const i32 as usize;
165+
let x_in_child = &*x as *const i32 as usize;
166166
tx.send(x_in_child).unwrap();
167167
}));
168168

0 commit comments

Comments
 (0)