|
1 | | -error: Consider using an `AtomicBool` instead of a `Mutex` here. If you just want the locking behavior and not the internal type, consider using `Mutex<()>`. |
| 1 | +error: consider using an `AtomicBool` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` |
2 | 2 | --> $DIR/mutex_atomic.rs:6:5 |
3 | 3 | | |
4 | 4 | LL | Mutex::new(true); |
5 | 5 | | ^^^^^^^^^^^^^^^^ |
6 | 6 | | |
7 | 7 | = note: `-D clippy::mutex-atomic` implied by `-D warnings` |
8 | 8 |
|
9 | | -error: Consider using an `AtomicUsize` instead of a `Mutex` here. If you just want the locking behavior and not the internal type, consider using `Mutex<()>`. |
| 9 | +error: consider using an `AtomicUsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` |
10 | 10 | --> $DIR/mutex_atomic.rs:7:5 |
11 | 11 | | |
12 | 12 | LL | Mutex::new(5usize); |
13 | 13 | | ^^^^^^^^^^^^^^^^^^ |
14 | 14 |
|
15 | | -error: Consider using an `AtomicIsize` instead of a `Mutex` here. If you just want the locking behavior and not the internal type, consider using `Mutex<()>`. |
| 15 | +error: consider using an `AtomicIsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` |
16 | 16 | --> $DIR/mutex_atomic.rs:8:5 |
17 | 17 | | |
18 | 18 | LL | Mutex::new(9isize); |
19 | 19 | | ^^^^^^^^^^^^^^^^^^ |
20 | 20 |
|
21 | | -error: Consider using an `AtomicPtr` instead of a `Mutex` here. If you just want the locking behavior and not the internal type, consider using `Mutex<()>`. |
| 21 | +error: consider using an `AtomicPtr` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` |
22 | 22 | --> $DIR/mutex_atomic.rs:10:5 |
23 | 23 | | |
24 | 24 | LL | Mutex::new(&x as *const u32); |
25 | 25 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
26 | 26 |
|
27 | | -error: Consider using an `AtomicPtr` instead of a `Mutex` here. If you just want the locking behavior and not the internal type, consider using `Mutex<()>`. |
| 27 | +error: consider using an `AtomicPtr` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` |
28 | 28 | --> $DIR/mutex_atomic.rs:11:5 |
29 | 29 | | |
30 | 30 | LL | Mutex::new(&mut x as *mut u32); |
31 | 31 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
32 | 32 |
|
33 | | -error: Consider using an `AtomicUsize` instead of a `Mutex` here. If you just want the locking behavior and not the internal type, consider using `Mutex<()>`. |
| 33 | +error: consider using an `AtomicUsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` |
34 | 34 | --> $DIR/mutex_atomic.rs:12:5 |
35 | 35 | | |
36 | 36 | LL | Mutex::new(0u32); |
37 | 37 | | ^^^^^^^^^^^^^^^^ |
38 | 38 | | |
39 | 39 | = note: `-D clippy::mutex-integer` implied by `-D warnings` |
40 | 40 |
|
41 | | -error: Consider using an `AtomicIsize` instead of a `Mutex` here. If you just want the locking behavior and not the internal type, consider using `Mutex<()>`. |
| 41 | +error: consider using an `AtomicIsize` instead of a `Mutex` here; if you just want the locking behavior and not the internal type, consider using `Mutex<()>` |
42 | 42 | --> $DIR/mutex_atomic.rs:13:5 |
43 | 43 | | |
44 | 44 | LL | Mutex::new(0i32); |
|
0 commit comments