wip #518
clippy
5 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 5 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.83.0 (90b35a623 2024-11-26)
- cargo 1.83.0 (5ffbef321 2024-10-29)
- clippy 0.1.83 (90b35a6 2024-11-26)
Annotations
Check failure on line 123 in src/quickjsvalueadapter.rs
github-actions / clippy
this let-binding has unit value
error: this let-binding has unit value
--> src/quickjsvalueadapter.rs:123:17
|
123 | let _ = libquickjs_sys::JS_DupValue(self.context, *self.borrow_value());
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: omit the `let` binding: `libquickjs_sys::JS_DupValue(self.context, *self.borrow_value());`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#let_unit_value
= note: `-D clippy::let-unit-value` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::let_unit_value)]`
Check failure on line 219 in src/quickjsrealmadapter.rs
github-actions / clippy
empty line after doc comment
error: empty line after doc comment
--> src/quickjsrealmadapter.rs:218:5
|
218 | / /// evaluate a script
219 | |
| |_
220 | pub fn eval(&self, script: Script) -> Result<QuickJsValueAdapter, JsError> {
| -------------------------------------------------------------------------- the comment documents this method
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
= help: if the empty line is unintentional remove it
Check failure on line 95 in src/quickjs_utils/arrays.rs
github-actions / clippy
empty line after doc comment
error: empty line after doc comment
--> src/quickjs_utils/arrays.rs:94:1
|
94 | / /// ```
95 | |
| |_
96 | pub fn create_array_q(q_ctx: &QuickJsRealmAdapter) -> Result<QuickJsValueAdapter, JsError> {
| ------------------------------------------------------------------------------------------ the comment documents this function
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
= help: if the empty line is unintentional remove it
Check failure on line 18 in src/features/setimmediate.rs
github-actions / clippy
empty line after doc comment
error: empty line after doc comment
--> src/features/setimmediate.rs:17:1
|
17 | / /// ```
18 | |
| |_
19 | pub fn init(q_js_rt: &QuickJsRuntimeAdapter) -> Result<(), JsError> {
| ------------------------------------------------------------------- the comment documents this function
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
= note: `-D clippy::empty-line-after-doc-comments` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::empty_line_after_doc_comments)]`
= help: if the empty line is unintentional remove it
Check failure on line 125 in src/quickjsvalueadapter.rs
github-actions / clippy
unneeded unit expression
error: unneeded unit expression
--> src/quickjsvalueadapter.rs:125:13
|
125 | ()
| ^^ help: remove the final `()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unused_unit
= note: `-D clippy::unused-unit` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::unused_unit)]`