diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 755b281..3cd5cd7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,7 +80,7 @@ jobs: - uses: actions/checkout@v2.3.4 - uses: actions-rs/toolchain@v1.0.7 with: - toolchain: stable + toolchain: nightly override: true - name: Run clippy uses: actions-rs/clippy-check@v1 diff --git a/src/lib.rs b/src/lib.rs index e022d35..c2a88e0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -183,7 +183,7 @@ impl Arbitrary for StaticSecret { .prop_filter("Valid scalar mod l", |b| { Scalar::from_bytes_mod_order(*b).is_canonical() }) - .prop_map(|bytes| return Self::from(bytes)) + .prop_map(Self::from) .boxed() } @@ -193,7 +193,6 @@ impl Arbitrary for StaticSecret { #[cfg(test)] mod tests { - use bincode; use rand_core::OsRng; use super::*;