Skip to content

Commit 6408a0a

Browse files
committed
A few clippy changes
1 parent a6cc7ab commit 6408a0a

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/api.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ impl Recrypt<Sha256, Ed25519, RandomBytes<DefaultRng>> {
5151
Recrypt::new_with_rand(ReseedingRng::new(
5252
rand_chacha::ChaChaCore::from_entropy(),
5353
BYTES_BEFORE_RESEEDING,
54-
rand::rngs::OsRng::default(),
54+
rand::rngs::OsRng,
5555
))
5656
}
5757
}

src/api_480.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ impl Recrypt480<Sha256, Ed25519, RandomBytes<DefaultRng>> {
5050
Recrypt480::new_with_rand(ReseedingRng::new(
5151
rand_chacha::ChaChaCore::from_entropy(),
5252
BYTES_BEFORE_RESEEDING,
53-
rand::rngs::OsRng::default(),
53+
rand::rngs::OsRng,
5454
))
5555
}
5656
}
@@ -934,13 +934,13 @@ impl SixtyBytes {
934934

935935
impl fmt::Debug for SixtyBytes {
936936
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
937-
write!(f, "{:?}", self.0.to_vec())
937+
write!(f, "{:?}", self.0)
938938
}
939939
}
940940

941941
impl fmt::LowerHex for SixtyBytes {
942942
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
943-
write!(f, "{}", hex::encode(self.0.to_vec()))
943+
write!(f, "{}", hex::encode(self.0))
944944
}
945945
}
946946

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#![cfg_attr(feature = "unstable", feature(test))]
21
#![doc(html_no_source)] // use github for source browsing
32

43
//! Recrypt implements a set of cryptographic primitives for building a

0 commit comments

Comments
 (0)