ci: add permissions to clippy_check
#676
Annotations
3 errors
./file/that/probably/doesnt/exist.rs#L0
aborting due to 1 previous error
|
initializer for `thread_local` value can be made `const`:
crates/jrsonnet-evaluator/src/lib.rs#L18
error: initializer for `thread_local` value can be made `const`
--> crates/jrsonnet-evaluator/src/stack.rs:18:35
|
18 | static STACK_LIMIT: StackLimit = StackLimit {
| ______________________________________^
19 | | max_stack_size: Cell::new(200),
20 | | current_depth: Cell::new(0),
21 | | };
| |_____^
|
= 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)]`
help: replace with
|
18 ~ static STACK_LIMIT: StackLimit = const { StackLimit {
19 ~ max_stack_size: Cell::new(200),
20 ~ current_depth: Cell::new(0),
21 ~ } };
|
|
aborting due to 1 previous error
error: aborting due to 1 previous error
|