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/checkout@v2.3.4
|
||||||
- uses: actions-rs/toolchain@v1.0.7
|
- uses: actions-rs/toolchain@v1.0.7
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: nightly
|
||||||
override: true
|
override: true
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
uses: actions-rs/clippy-check@v1
|
uses: actions-rs/clippy-check@v1
|
||||||
|
|
|
@ -183,7 +183,7 @@ impl Arbitrary for StaticSecret {
|
||||||
.prop_filter("Valid scalar mod l", |b| {
|
.prop_filter("Valid scalar mod l", |b| {
|
||||||
Scalar::from_bytes_mod_order(*b).is_canonical()
|
Scalar::from_bytes_mod_order(*b).is_canonical()
|
||||||
})
|
})
|
||||||
.prop_map(|bytes| return Self::from(bytes))
|
.prop_map(Self::from)
|
||||||
.boxed()
|
.boxed()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -193,7 +193,6 @@ impl Arbitrary for StaticSecret {
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
|
||||||
use bincode;
|
|
||||||
use rand_core::OsRng;
|
use rand_core::OsRng;
|
||||||
|
|
||||||
use super::*;
|
use super::*;
|
||||||
|
|
Loading…
Reference in New Issue