Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(restore-unchecked): restore root #72

Merged
merged 3 commits into from
Apr 12, 2024

set root to storage.storage_root(

6d398f7
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

fix(restore-unchecked): restore root #72

set root to storage.storage_root(
6d398f7
Select commit
Loading
Failed to load commit list.
GitHub Actions / clippy succeeded Apr 12, 2024 in 1s

clippy

5 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 0
Warning 5
Note 0
Help 0

Versions

  • rustc 1.78.0-nightly (b11fbfbf3 2024-02-03)
  • cargo 1.78.0-nightly (7bb7b5395 2024-01-20)
  • clippy 0.1.77 (b11fbfb 2024-02-03)

Annotations

Check warning on line 24 in src/util.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

function `as_bytes` is never used

warning: function `as_bytes` is never used
  --> src/util.rs:24:22
   |
24 | pub(crate) unsafe fn as_bytes<T: ?Sized>(p: &T) -> &[u8] {
   |                      ^^^^^^^^
   |
   = note: `#[warn(dead_code)]` on by default

Check warning on line 86 in src/cascading_merkle_tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

variable does not need to be mutable

warning: variable does not need to be mutable
  --> src/cascading_merkle_tree.rs:86:13
   |
86 |         let mut tree = CascadingMerkleTree {
   |             ----^^^^
   |             |
   |             help: remove this `mut`
   |
   = note: `#[warn(unused_mut)]` on by default

Check warning on line 5 in src/cascading_merkle_tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `rayon::prelude`

warning: unused import: `rayon::prelude`
 --> src/cascading_merkle_tree.rs:5:5
  |
5 | use rayon::prelude::*;
  |     ^^^^^^^^^^^^^^

Check warning on line 4 in src/cascading_merkle_tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused import: `itertools::Itertools`

warning: unused import: `itertools::Itertools`
 --> src/cascading_merkle_tree.rs:4:5
  |
4 | use itertools::Itertools;
  |     ^^^^^^^^^^^^^^^^^^^^

Check warning on line 1 in src/cascading_merkle_tree.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

unused imports: `DerefMut`, `Deref`

warning: unused imports: `DerefMut`, `Deref`
 --> src/cascading_merkle_tree.rs:1:16
  |
1 | use std::ops::{Deref, DerefMut};
  |                ^^^^^  ^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` on by default