ToComputed
impls for primitive types
#1709
GitHub Actions / Vertigo Clippy Output
failed
Dec 18, 2024 in 0s
Vertigo Clippy Output
2 errors
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 2 |
Warning | 0 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.85.0-nightly (a4cb3c831 2024-12-17)
- cargo 1.85.0-nightly (769f622e1 2024-12-14)
- clippy 0.1.85 (a4cb3c8318 2024-12-17)
Annotations
Check failure on line 112 in crates/vertigo/src/driver_module/js_value/js_value_struct.rs
github-actions / Vertigo Clippy Output
needless call to `as_bytes()`
error: needless call to `as_bytes()`
--> crates/vertigo/src/driver_module/js_value/js_value_struct.rs:112:9
|
112 | value.as_bytes().len() as u32
| ^^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `value.len()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes
Check failure on line 157 in crates/vertigo/src/driver_module/js_value/js_json_struct.rs
github-actions / Vertigo Clippy Output
needless call to `as_bytes()`
error: needless call to `as_bytes()`
--> crates/vertigo/src/driver_module/js_value/js_json_struct.rs:157:9
|
157 | value.as_bytes().len() as u32
| ^^^^^^^^^^^^^^^^^^^^^^ help: `len()` can be called directly on strings: `value.len()`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_as_bytes
= note: `-D clippy::needless-as-bytes` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(clippy::needless_as_bytes)]`
Loading