Skip to content

Bump Rust version and resolve Clippy issues #675

Bump Rust version and resolve Clippy issues

Bump Rust version and resolve Clippy issues #675

Triggered via pull request May 2, 2024 16:36
Status Failure
Total duration 49s
Artifacts

clippy_check.yml

on: pull_request
clippy_check
38s
clippy_check
Fit to window
Zoom out
Zoom in

Annotations

2 errors
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