Commit 4a46306
committed
Resolve thread_local_initializer_can_be_made_const clippy lint
warning: initializer for `thread_local` value can be made `const`
--> tests/test.rs:20:34
|
20 | static CORRECT: Cell<bool> = Cell::new(false);
| ^^^^^^^^^^^^^^^^ help: replace with: `const { Cell::new(false) }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#thread_local_initializer_can_be_made_const
= note: `-W clippy::thread-local-initializer-can-be-made-const` implied by `-W clippy::all`
= help: to override `-W clippy::all` add `#[allow(clippy::thread_local_initializer_can_be_made_const)]`1 parent 5ceca34 commit 4a46306
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
0 commit comments