From c4f690c4f4e4f4ff23f81cedfa8e84925b1afa1d Mon Sep 17 00:00:00 2001 From: Kisaragi Marine Date: Mon, 19 Jun 2023 19:10:27 +0900 Subject: [PATCH] fix lint on test --- library/std/src/thread/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/std/src/thread/tests.rs b/library/std/src/thread/tests.rs index b65e2572cc5e..09190693c21f 100644 --- a/library/std/src/thread/tests.rs +++ b/library/std/src/thread/tests.rs @@ -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(); }));