Skip to content

fix the test

fix the test #106

Triggered via push July 4, 2023 12:46
Status Success
Total duration 35s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

cargo-vet.yml

on: push
Vet Dependencies
27s
Vet Dependencies
Fit to window
Zoom out
Zoom in

Annotations

9 warnings
docs for function which may panic missing `# Panics` section: src/identity_tree.rs#L517
warning: docs for function which may panic missing `# Panics` section --> src/identity_tree.rs:517:5 | 517 | / pub fn new( 518 | | tree_depth: usize, 519 | | dense_prefix_depth: usize, 520 | | flattening_threshold: usize, ... | 523 | | mmap_file_path: &str, 524 | | ) -> Self { | |_____________^ | note: first possible panic found here --> src/identity_tree.rs:530:13 | 530 | / PoseidonTree::<lazy_merkle_tree::Canonical>::new_mmapped_with_dense_prefix_with_init_values( 531 | | tree_depth, 532 | | dense_prefix_depth, 533 | | &initial_leaf, 534 | | initial_leaves_in_dense, 535 | | mmap_file_path 536 | | ).unwrap(); | |______________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
called `.iter().count()` on a `Vec`: src/app.rs#L607
warning: called `.iter().count()` on a `Vec` --> src/app.rs:607:20 | 607 | assert_eq!(leaves.iter().count(), 2); | ^^^^^^^^^^^^^^^^^^^^^ help: try: `leaves.len()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_count
called `.iter().count()` on a `Vec`: src/app.rs#L585
warning: called `.iter().count()` on a `Vec` --> src/app.rs:585:47 | 585 | assert_eq!(last_mined_index_in_dense, identities.iter().count()); | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `identities.len()` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#iter_count note: the lint level is defined here --> src/lib.rs:2:9 | 2 | #![warn(clippy::all, clippy::pedantic, clippy::cargo)] | ^^^^^^^^^^^ = note: `#[warn(clippy::iter_count)]` implied by `#[warn(clippy::all)]`
docs for function which may panic missing `# Panics` section: src/app.rs#L246
warning: docs for function which may panic missing `# Panics` section --> src/app.rs:246:5 | 246 | / pub fn get_leftover_leaves_and_update_index( 247 | | index: &mut usize, 248 | | dense_prefix_depth: usize, 249 | | mined_items: &Vec<TreeUpdate>, 250 | | ) -> Vec<ruint::Uint<256, 4>> { | |_________________________________^ | note: first possible panic found here --> src/app.rs:254:28 | 254 | let max_leaf = mined_items.last().map(|item| item.leaf_index).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc note: the lint level is defined here --> src/lib.rs:2:22 | 2 | #![warn(clippy::all, clippy::pedantic, clippy::cargo)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`
this import is redundant: tests/dynamic_batch_sizes.rs#L7
warning: this import is redundant --> tests/dynamic_batch_sizes.rs:7:1 | 7 | use tempfile; | ^^^^^^^^^^^^^ help: remove it entirely | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_component_path_imports = note: `#[warn(clippy::single_component_path_imports)]` on by default
docs for function which may panic missing `# Panics` section: src/identity_tree.rs#L517
warning: docs for function which may panic missing `# Panics` section --> src/identity_tree.rs:517:5 | 517 | / pub fn new( 518 | | tree_depth: usize, 519 | | dense_prefix_depth: usize, 520 | | flattening_threshold: usize, ... | 523 | | mmap_file_path: &str, 524 | | ) -> Self { | |_____________^ | note: first possible panic found here --> src/identity_tree.rs:530:13 | 530 | / PoseidonTree::<lazy_merkle_tree::Canonical>::new_mmapped_with_dense_prefix_with_init_values( 531 | | tree_depth, 532 | | dense_prefix_depth, 533 | | &initial_leaf, 534 | | initial_leaves_in_dense, 535 | | mmap_file_path 536 | | ).unwrap(); | |______________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function which may panic missing `# Panics` section: src/identity_tree.rs#L517
warning: docs for function which may panic missing `# Panics` section --> src/identity_tree.rs:517:5 | 517 | / pub fn new( 518 | | tree_depth: usize, 519 | | dense_prefix_depth: usize, 520 | | flattening_threshold: usize, ... | 523 | | mmap_file_path: &str, 524 | | ) -> Self { | |_____________^ | note: first possible panic found here --> src/identity_tree.rs:530:13 | 530 | / PoseidonTree::<lazy_merkle_tree::Canonical>::new_mmapped_with_dense_prefix_with_init_values( 531 | | tree_depth, 532 | | dense_prefix_depth, 533 | | &initial_leaf, 534 | | initial_leaves_in_dense, 535 | | mmap_file_path 536 | | ).unwrap(); | |______________________^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
docs for function which may panic missing `# Panics` section: src/app.rs#L246
warning: docs for function which may panic missing `# Panics` section --> src/app.rs:246:5 | 246 | / pub fn get_leftover_leaves_and_update_index( 247 | | index: &mut usize, 248 | | dense_prefix_depth: usize, 249 | | mined_items: &Vec<TreeUpdate>, 250 | | ) -> Vec<ruint::Uint<256, 4>> { | |_________________________________^ | note: first possible panic found here --> src/app.rs:254:28 | 254 | let max_leaf = mined_items.last().map(|item| item.leaf_index).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc note: the lint level is defined here --> src/lib.rs:2:22 | 2 | #![warn(clippy::all, clippy::pedantic, clippy::cargo)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`
docs for function which may panic missing `# Panics` section: src/app.rs#L246
warning: docs for function which may panic missing `# Panics` section --> src/app.rs:246:5 | 246 | / pub fn get_leftover_leaves_and_update_index( 247 | | index: &mut usize, 248 | | dense_prefix_depth: usize, 249 | | mined_items: &Vec<TreeUpdate>, 250 | | ) -> Vec<ruint::Uint<256, 4>> { | |_________________________________^ | note: first possible panic found here --> src/app.rs:254:28 | 254 | let max_leaf = mined_items.last().map(|item| item.leaf_index).unwrap(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc note: the lint level is defined here --> src/lib.rs:2:22 | 2 | #![warn(clippy::all, clippy::pedantic, clippy::cargo)] | ^^^^^^^^^^^^^^^^ = note: `#[warn(clippy::missing_panics_doc)]` implied by `#[warn(clippy::pedantic)]`