Skip to content

Update README.md

Update README.md #504

GitHub Actions / clippy failed Apr 29, 2024 in 0s

clippy

2 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 2
Warning 0
Note 0
Help 0

Versions

  • rustc 1.77.2 (25ef9e3d8 2024-04-09)
  • cargo 1.77.2 (e52e36006 2024-03-26)
  • clippy 0.1.77 (25ef9e3 2024-04-09)

Annotations

Check failure on line 274 in src/quickjsruntimeadapter.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

initializer for `thread_local` value can be made `const`

error: initializer for `thread_local` value can be made `const`
   --> src/quickjsruntimeadapter.rs:274:36
    |
274 |     static NESTED: RefCell<bool> = RefCell::new(false);
    |                                    ^^^^^^^^^^^^^^^^^^^ help: replace with: `const { RefCell::new(false) }`
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#thread_local_initializer_can_be_made_const

Check failure on line 251 in src/quickjsruntimeadapter.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

initializer for `thread_local` value can be made `const`

error: initializer for `thread_local` value can be made `const`
   --> src/quickjsruntimeadapter.rs:249:72
    |
249 |      pub(crate) static QJS_RT: RefCell<Option<QuickJsRuntimeAdapter >> = {
    |  ________________________________________________________________________^
250 | |        RefCell::new(None)
251 | |    };
    | |____^ help: replace with: `const { RefCell::new(None) }`
    |
    = 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)]`