Skip to content

Commit

Permalink
fix lint on test
Browse files Browse the repository at this point in the history
  • Loading branch information
KisaragiEffective committed Jun 19, 2023
1 parent 09491bd commit c4f690c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/std/src/thread/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ where
let (tx, rx) = channel();

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

spawnfn(Box::new(move || {
let x_in_child = (&*x) as *const i32 as usize;
let x_in_child = &*x as *const i32 as usize;
tx.send(x_in_child).unwrap();
}));

Expand Down

0 comments on commit c4f690c

Please sign in to comment.