Skip to content

[xtask] Add support for cargo metadata new workspace member format #3576

[xtask] Add support for cargo metadata new workspace member format

[xtask] Add support for cargo metadata new workspace member format #3576

GitHub Actions / clippy failed Mar 21, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (1)

crates/burn-fusion/src/stream/base.rs|43 col 71| error: initializer for thread_local value can be made const
--> crates/burn-fusion/src/stream/base.rs:43:71
|
43 | static ID: std::cell::OnceCell::std::thread::ThreadId = std::cell::OnceCell::new();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: const { std::cell::OnceCell::new() }
|
= 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)]

Filtered Findings (0)

Annotations

Check failure on line 43 in crates/burn-fusion/src/stream/base.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] crates/burn-fusion/src/stream/base.rs#L43

error: initializer for `thread_local` value can be made `const`
  --> crates/burn-fusion/src/stream/base.rs:43:71
   |
43 |             static ID: std::cell::OnceCell::<std::thread::ThreadId> = std::cell::OnceCell::new();
   |                                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `const { std::cell::OnceCell::new() }`
   |
   = 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)]`
Raw output
crates/burn-fusion/src/stream/base.rs:43:71:e:error: initializer for `thread_local` value can be made `const`
  --> crates/burn-fusion/src/stream/base.rs:43:71
   |
43 |             static ID: std::cell::OnceCell::<std::thread::ThreadId> = std::cell::OnceCell::new();
   |                                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: replace with: `const { std::cell::OnceCell::new() }`
   |
   = 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)]`


__END__