Use nightly clippy
This commit is contained in:
parent
ecf327eff0
commit
4360ff8595
|
@ -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
|
||||
|
|
|
@ -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::*;
|
||||
|
|
Loading…
Reference in New Issue