v0.2 concept #772
clippy
4 warnings
Details
Results
Message level | Amount |
---|---|
Internal compiler error | 0 |
Error | 0 |
Warning | 4 |
Note | 0 |
Help | 0 |
Versions
- rustc 1.84.0 (9fc6b4312 2025-01-07)
- cargo 1.84.0 (66221abde 2024-11-19)
- clippy 0.1.84 (9fc6b43126 2025-01-07)
Annotations
Check warning on line 52 in crates/enclave/core/src/store/default.rs
github-actions / clippy
using `clone` on type `Option<[u8; 32]>` which implements the `Copy` trait
warning: using `clone` on type `Option<[u8; 32]>` which implements the `Copy` trait
--> crates/enclave/core/src/store/default.rs:52:12
|
52 | Ok(self.nonce.clone())
| ^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.nonce`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `#[warn(clippy::clone_on_copy)]` on by default
Check warning on line 100 in crates/enclave/core/src/host.rs
github-actions / clippy
this expression borrows a value the compiler would automatically borrow
warning: this expression borrows a value the compiler would automatically borrow
--> crates/enclave/core/src/host.rs:100:33
|
100 | let tx_config = (&self.gas_fn)(&response);
| ^^^^^^^^^^^^^^ help: change this to: `(self.gas_fn)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
Check warning on line 52 in crates/enclave/core/src/store/default.rs
github-actions / clippy
using `clone` on type `Option<[u8; 32]>` which implements the `Copy` trait
warning: using `clone` on type `Option<[u8; 32]>` which implements the `Copy` trait
--> crates/enclave/core/src/store/default.rs:52:12
|
52 | Ok(self.nonce.clone())
| ^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.nonce`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
= note: `#[warn(clippy::clone_on_copy)]` on by default
Check warning on line 100 in crates/enclave/core/src/host.rs
github-actions / clippy
this expression borrows a value the compiler would automatically borrow
warning: this expression borrows a value the compiler would automatically borrow
--> crates/enclave/core/src/host.rs:100:33
|
100 | let tx_config = (&self.gas_fn)(&response);
| ^^^^^^^^^^^^^^ help: change this to: `(self.gas_fn)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default