Skip to content
Triggered via push March 19, 2024 19:18
Status Success
Total duration 7m 49s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

58 warnings
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/merkle_tree.rs#L154
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/merkle_tree.rs:154:36 | 154 | 0 => Branch::Right(self.nodes[index - 1].clone()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.nodes[index - 1]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/merkle_tree.rs#L153
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/merkle_tree.rs:153:35 | 153 | 1 => Branch::Left(self.nodes[index + 1].clone()), | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.nodes[index + 1]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/merkle_tree.rs#L112
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/merkle_tree.rs:112:9 | 112 | self.nodes[0].clone() | ^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.nodes[0]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L1078
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:1078:41 | 1078 | return SparseTree::new_leaf(hash.clone()); | ^^^^^^^^^^^^ help: try dereferencing it: `*hash` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L1041
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:1041:9 | 1041 | self.storage[self.root_index].clone() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.storage[self.root_index]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L1012
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:1012:9 | 1012 | self.storage.lock().expect("lock poisoned")[self.root_index].clone() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.storage.lock().expect("lock poisoned")[self.root_index]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L1001
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:1001:45 | 1001 | storage[leaf_index_in_dense_tree] = value.clone(); | ^^^^^^^^^^^^^ help: try dereferencing it: `*value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L980
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:980:13 | 980 | r.storage[leaf_index_in_dense_tree].clone() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `r.storage[leaf_index_in_dense_tree]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L851
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:851:41 | 851 | return SparseTree::new_leaf(hash.clone()); | ^^^^^^^^^^^^ help: try dereferencing it: `*hash` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L814
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:814:9 | 814 | self.storage[self.root_index].clone() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.storage[self.root_index]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L785
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:785:9 | 785 | self.storage.lock().unwrap()[self.root_index].clone() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.storage.lock().unwrap()[self.root_index]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L774
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:774:45 | 774 | storage[leaf_index_in_dense_tree] = value.clone(); | ^^^^^^^^^^^^^ help: try dereferencing it: `*value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L753
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:753:13 | 753 | r.storage[leaf_index_in_dense_tree].clone() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `r.storage[leaf_index_in_dense_tree]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L700
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:700:34 | 700 | let empties = repeat(empty_value.clone()).take(leaf_count - values.len()); | ^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*empty_value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L696
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:696:30 | 696 | let empties = repeat(empty_value.clone()).take(leaf_count); | ^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*empty_value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L660
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:660:16 | 660 | || self.root.clone(), | ^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.root` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L655
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:655:9 | 655 | self.root.clone() | ^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.root` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L629
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:629:35 | 629 | return Self::new_leaf(value.clone()); | ^^^^^^^^^^^^^ help: try dereferencing it: `*value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L583
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:583:23 | 583 | root: self.root.clone(), | ^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.root` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L519
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:519:9 | 519 | self.empty_tree_values[0].clone() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.empty_tree_values[0]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L515
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:515:9 | 515 | self.empty_tree_values[self.depth].clone() | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.empty_tree_values[self.depth]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L460
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:460:23 | 460 | let val = self.empty_tree_values[depth - 1].clone(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `self.empty_tree_values[depth - 1]` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L313
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:313:47 | 313 | EmptyTree::new(current_depth, empty_leaf.clone()).into(), | ^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*empty_leaf` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L291
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:291:47 | 291 | EmptyTree::new(current_depth, empty_value.clone()).into(), | ^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*empty_value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L268
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:268:47 | 268 | EmptyTree::new(current_depth, empty_value.clone()).into(), | ^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*empty_value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L261
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:261:61 | 261 | let mut result: Self = EmptyTree::new(prefix_depth, empty_value.clone()) | ^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*empty_value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait: src/lazy_merkle_tree.rs#L251
warning: using `clone` on type `<H as Hasher>::Hash` which implements the `Copy` trait --> src/lazy_merkle_tree.rs:251:47 | 251 | EmptyTree::new(current_depth, empty_value.clone()).into(), | ^^^^^^^^^^^^^^^^^^^ help: try dereferencing it: `*empty_value` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy note: the lint level is defined here --> src/lib.rs:2:9 | 2 | #![warn(clippy::all, clippy::cargo)] | ^^^^^^^^^^^ = note: `#[warn(clippy::clone_on_copy)]` implied by `#[warn(clippy::all)]`
function `as_bytes` is never used: src/util.rs#L24
warning: function `as_bytes` is never used --> src/util.rs:24:22 | 24 | pub(crate) unsafe fn as_bytes<T: ?Sized>(p: &T) -> &[u8] { | ^^^^^^^^
function `children` is never used: src/dynamic_merkle_tree.rs#L523
warning: function `children` is never used --> src/dynamic_merkle_tree.rs:523:4 | 523 | fn children(i: usize) -> Option<(usize, usize)> { | ^^^^^^^^
function `index` is never used: src/dynamic_merkle_tree.rs#L486
warning: function `index` is never used --> src/dynamic_merkle_tree.rs:486:4 | 486 | fn index(height: usize, offset: usize) -> usize { | ^^^^^ | = note: `#[warn(dead_code)]` on by default
unused variable: `offset`: src/dynamic_merkle_tree.rs#L486
warning: unused variable: `offset` --> src/dynamic_merkle_tree.rs:486:25 | 486 | fn index(height: usize, offset: usize) -> usize { | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_offset`
unused variable: `height`: src/dynamic_merkle_tree.rs#L486
warning: unused variable: `height` --> src/dynamic_merkle_tree.rs:486:10 | 486 | fn index(height: usize, offset: usize) -> usize { | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_height` | = note: `#[warn(unused_variables)]` on by default
unused import: `util::as_bytes`: src/lazy_merkle_tree.rs#L3
warning: unused import: `util::as_bytes` --> src/lazy_merkle_tree.rs:3:5 | 3 | util::as_bytes, | ^^^^^^^^^^^^^^
unused import: `thiserror::Error`: src/dynamic_merkle_tree.rs#L10
warning: unused import: `thiserror::Error` --> src/dynamic_merkle_tree.rs:10:5 | 10 | use thiserror::Error; | ^^^^^^^^^^^^^^^^
unused imports: `MmapMut`, `MmapOptions`: src/dynamic_merkle_tree.rs#L8
warning: unused imports: `MmapMut`, `MmapOptions` --> src/dynamic_merkle_tree.rs:8:15 | 8 | use mmap_rs::{MmapMut, MmapOptions}; | ^^^^^^^ ^^^^^^^^^^^
unused imports: `Arc`, `Mutex`, `once`, `ops::DerefMut`, `successors`: src/dynamic_merkle_tree.rs#L3
warning: unused imports: `Arc`, `Mutex`, `once`, `ops::DerefMut`, `successors` --> src/dynamic_merkle_tree.rs:3:12 | 3 | iter::{once, repeat, successors}, | ^^^^ ^^^^^^^^^^ 4 | ops::DerefMut, | ^^^^^^^^^^^^^ 5 | sync::{Arc, Mutex}, | ^^^ ^^^^^ | = note: `#[warn(unused_imports)]` on by default
Lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions-rs/toolchain@v1, actions-rs/cargo@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Test: src/dynamic_merkle_tree.rs#L3
unused imports: `Arc`, `Mutex`, `once`, `ops::DerefMut`, `successors`
Test: src/dynamic_merkle_tree.rs#L8
unused imports: `MmapMut`, `MmapOptions`
Test: src/dynamic_merkle_tree.rs#L10
unused import: `thiserror::Error`
Test: src/lazy_merkle_tree.rs#L3
unused import: `util::as_bytes`
Test: src/dynamic_merkle_tree.rs#L486
unused variable: `height`
Test: src/dynamic_merkle_tree.rs#L486
unused variable: `offset`
Test: src/dynamic_merkle_tree.rs#L486
function `index` is never used
Test: src/dynamic_merkle_tree.rs#L523
function `children` is never used
Test: src/util.rs#L24
function `as_bytes` is never used
Test
`semaphore` (lib) generated 9 warnings (run `cargo fix --lib -p semaphore` to apply 6 suggestions)