Skip to content

core Address referenced in SDK

Sign in for the full log view
GitHub Actions / clippy failed Sep 30, 2024 in 0s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (2)

sdk/core/src/data/address.rs|45 col 17| warning: using clone on type [u8; 32] which implements the Copy trait
--> sdk/core/src/data/address.rs:45:17
|
45 | Address(value.as_array().clone())
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: *value.as_array()
|
= 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
sdk/core/src/data/address.rs|45 col 17| warning: using clone on type [u8; 32] which implements the Copy trait
--> sdk/core/src/data/address.rs:45:17
|
45 | Address(value.as_array().clone())
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: *value.as_array()
|
= 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

Filtered Findings (0)

Annotations

Check warning on line 45 in sdk/core/src/data/address.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] sdk/core/src/data/address.rs#L45

warning: using `clone` on type `[u8; 32]` which implements the `Copy` trait
  --> sdk/core/src/data/address.rs:45:17
   |
45 |         Address(value.as_array().clone())
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*value.as_array()`
   |
   = 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
Raw output
sdk/core/src/data/address.rs:45:17:w:warning: using `clone` on type `[u8; 32]` which implements the `Copy` trait
  --> sdk/core/src/data/address.rs:45:17
   |
45 |         Address(value.as_array().clone())
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*value.as_array()`
   |
   = 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


__END__

Check warning on line 45 in sdk/core/src/data/address.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] sdk/core/src/data/address.rs#L45

warning: using `clone` on type `[u8; 32]` which implements the `Copy` trait
  --> sdk/core/src/data/address.rs:45:17
   |
45 |         Address(value.as_array().clone())
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*value.as_array()`
   |
   = 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
Raw output
sdk/core/src/data/address.rs:45:17:w:warning: using `clone` on type `[u8; 32]` which implements the `Copy` trait
  --> sdk/core/src/data/address.rs:45:17
   |
45 |         Address(value.as_array().clone())
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*value.as_array()`
   |
   = 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


__END__