diff options
Diffstat (limited to 'rust/pin-init/examples/static_init.rs')
| -rw-r--r-- | rust/pin-init/examples/static_init.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/pin-init/examples/static_init.rs b/rust/pin-init/examples/static_init.rs index 906b96c5d4b9..58cd4241b78c 100644 --- a/rust/pin-init/examples/static_init.rs +++ b/rust/pin-init/examples/static_init.rs @@ -117,7 +117,7 @@ fn main() { for h in handles { h.join().expect("thread panicked"); } - println!("{:?}, {:?}", &*mtx.lock(), &*COUNT.lock()); + println!("{:?}, {:?}", *mtx.lock(), *COUNT.lock()); assert_eq!(*mtx.lock(), workload * thread_count * 2); } } |
