v0.1.x: clean up warnings #5319
GitHub Actions / clippy
failed
Aug 29, 2024 in 0s
clippy
1 error
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 1 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.80.1 (3f5fd8dd4 2024-08-06)
- cargo 1.80.1 (376290515 2024-07-16)
- clippy 0.1.80 (3f5fd8d 2024-08-06)
Annotations
Check failure on line 41 in examples/examples/sloggish/sloggish_subscriber.rs
github-actions / clippy
initializer for `thread_local` value can be made `const`
error: initializer for `thread_local` value can be made `const`
--> examples/examples/sloggish/sloggish_subscriber.rs:41:48
|
41 | static CURRENT: RefCell<Vec<Id>> = RefCell::new(vec![]);
| ^^^^^^^^^^^^^^^^^^^^ help: replace with: `const { RefCell::new(vec![]) }`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#thread_local_initializer_can_be_made_const
= note: `-D clippy::thread-local-initializer-can-be-made-const` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::thread_local_initializer_can_be_made_const)]`
Loading