Skip to content

Some minor fixes and cleanup #556

Some minor fixes and cleanup

Some minor fixes and cleanup #556

This check has been archived and is scheduled for deletion. Learn more about checks retention
GitHub Actions / clippy failed Jul 10, 2023 in 0s

clippy

2 errors, 12 warnings

Details

Results

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

Versions

  • rustc 1.73.0-nightly (1065d876c 2023-07-09)
  • cargo 1.73.0-nightly (45782b6b8 2023-07-05)
  • clippy 0.1.72 (1065d87 2023-07-09)

Annotations

Check failure on line 1 in examples/native-module/src/using_macro.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

failed to resolve: could not find `bind` in `rquickjs`

error[E0433]: failed to resolve: could not find `bind` in `rquickjs`
 --> examples/native-module/src/using_macro.rs:1:13
  |
1 | #[rquickjs::bind(module, public)]
  |             ^^^^ could not find `bind` in `rquickjs`

Check failure on line 11 in examples/native-module/src/lib.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unresolved import `using_macro::NativeModule`

error[E0432]: unresolved import `using_macro::NativeModule`
  --> examples/native-module/src/lib.rs:11:5
   |
11 | use using_macro::NativeModule;
   |     ^^^^^^^^^^^^^------------
   |     |            |
   |     |            help: a similar name exists in the module: `native_module`
   |     no `NativeModule` in `using_macro`

Check warning on line 205 in core/src/persistent.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `val`

warning: unused variable: `val`
   --> core/src/persistent.rs:205:37
    |
205 |     pub fn save<'js>(ctx: Ctx<'js>, val: T) -> Persistent<T::Target<'static>>
    |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_val`

Check warning on line 205 in core/src/persistent.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `ctx`

warning: unused variable: `ctx`
   --> core/src/persistent.rs:205:22
    |
205 |     pub fn save<'js>(ctx: Ctx<'js>, val: T) -> Persistent<T::Target<'static>>
    |                      ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

Check warning on line 144 in core/src/runtime/raw.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `rt`

warning: unused variable: `rt`
   --> core/src/runtime/raw.rs:144:35
    |
144 |     pub(crate) unsafe fn init_raw(rt: *mut qjs::JSRuntime) {
    |                                   ^^ help: if this is intentional, prefix it with an underscore: `_rt`
    |
    = note: `#[warn(unused_variables)]` on by default

Check warning on line 205 in core/src/persistent.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `val`

warning: unused variable: `val`
   --> core/src/persistent.rs:205:37
    |
205 |     pub fn save<'js>(ctx: Ctx<'js>, val: T) -> Persistent<T::Target<'static>>
    |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_val`

Check warning on line 205 in core/src/persistent.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `ctx`

warning: unused variable: `ctx`
   --> core/src/persistent.rs:205:22
    |
205 |     pub fn save<'js>(ctx: Ctx<'js>, val: T) -> Persistent<T::Target<'static>>
    |                      ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

Check warning on line 144 in core/src/runtime/raw.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `rt`

warning: unused variable: `rt`
   --> core/src/runtime/raw.rs:144:35
    |
144 |     pub(crate) unsafe fn init_raw(rt: *mut qjs::JSRuntime) {
    |                                   ^^ help: if this is intentional, prefix it with an underscore: `_rt`
    |
    = note: `#[warn(unused_variables)]` on by default

Check warning on line 205 in core/src/persistent.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `val`

warning: unused variable: `val`
   --> core/src/persistent.rs:205:37
    |
205 |     pub fn save<'js>(ctx: Ctx<'js>, val: T) -> Persistent<T::Target<'static>>
    |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_val`

Check warning on line 205 in core/src/persistent.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `ctx`

warning: unused variable: `ctx`
   --> core/src/persistent.rs:205:22
    |
205 |     pub fn save<'js>(ctx: Ctx<'js>, val: T) -> Persistent<T::Target<'static>>
    |                      ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

Check warning on line 144 in core/src/runtime/raw.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `rt`

warning: unused variable: `rt`
   --> core/src/runtime/raw.rs:144:35
    |
144 |     pub(crate) unsafe fn init_raw(rt: *mut qjs::JSRuntime) {
    |                                   ^^ help: if this is intentional, prefix it with an underscore: `_rt`
    |
    = note: `#[warn(unused_variables)]` on by default

Check warning on line 205 in core/src/persistent.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `val`

warning: unused variable: `val`
   --> core/src/persistent.rs:205:37
    |
205 |     pub fn save<'js>(ctx: Ctx<'js>, val: T) -> Persistent<T::Target<'static>>
    |                                     ^^^ help: if this is intentional, prefix it with an underscore: `_val`

Check warning on line 205 in core/src/persistent.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `ctx`

warning: unused variable: `ctx`
   --> core/src/persistent.rs:205:22
    |
205 |     pub fn save<'js>(ctx: Ctx<'js>, val: T) -> Persistent<T::Target<'static>>
    |                      ^^^ help: if this is intentional, prefix it with an underscore: `_ctx`

Check warning on line 144 in core/src/runtime/raw.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused variable: `rt`

warning: unused variable: `rt`
   --> core/src/runtime/raw.rs:144:35
    |
144 |     pub(crate) unsafe fn init_raw(rt: *mut qjs::JSRuntime) {
    |                                   ^^ help: if this is intentional, prefix it with an underscore: `_rt`
    |
    = note: `#[warn(unused_variables)]` on by default