Use nightly clippy

This commit is contained in:
Deirdre Connolly 2021-06-10 22:29:02 -04:00
parent ecf327eff0
commit 4360ff8595
2 changed files with 2 additions and 3 deletions

View File

@ -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

View File

@ -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::*;