Skip to content

Commit

Permalink
clippy: fix TryFrom/TryInto warnings (#279)
Browse files Browse the repository at this point in the history
  • Loading branch information
hackaugusto authored Feb 21, 2024
1 parent 1eb4c2b commit 1f2c920
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/hash/rescue/rpo/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use super::{
ARK2, BINARY_CHUNK_SIZE, CAPACITY_RANGE, DIGEST_BYTES, DIGEST_RANGE, DIGEST_SIZE, INPUT1_RANGE,
INPUT2_RANGE, MDS, NUM_ROUNDS, ONE, RATE_RANGE, RATE_WIDTH, STATE_WIDTH, ZERO,
};
use core::{convert::TryInto, ops::Range};
use core::ops::Range;

mod digest;
pub use digest::RpoDigest;
Expand Down
1 change: 0 additions & 1 deletion src/hash/rescue/rpo/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use crate::{
utils::collections::{BTreeSet, Vec},
Word,
};
use core::convert::TryInto;
use proptest::prelude::*;
use rand_utils::rand_value;

Expand Down
2 changes: 1 addition & 1 deletion src/hash/rescue/rpx/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use super::{
DIGEST_SIZE, INPUT1_RANGE, INPUT2_RANGE, MDS, NUM_ROUNDS, RATE_RANGE, RATE_WIDTH, STATE_WIDTH,
ZERO,
};
use core::{convert::TryInto, ops::Range};
use core::ops::Range;

mod digest;
pub use digest::RpxDigest;
Expand Down

0 comments on commit 1f2c920

Please sign in to comment.