Skip to content

Commit 01e440b

Browse files
Bump clippy to Rust 1.81 (#1225)
Also fixes clippy warnings
1 parent 852aaf4 commit 01e440b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/workspace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- uses: actions/checkout@v2
2626
- uses: actions-rs/toolchain@v1
2727
with:
28-
toolchain: 1.70.0 # MSRV
28+
toolchain: 1.81.0 # pinned to prevent breakages
2929
components: clippy
3030
override: true
3131
profile: minimal

secrecy/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ impl<S: Zeroize + ?Sized> SecretBox<S> {
8888
}
8989
}
9090

91-
impl<S: Zeroize + Default + ?Sized> SecretBox<S> {
91+
impl<S: Zeroize + Default> SecretBox<S> {
9292
/// Create a secret value using a function that can initialize the value in-place.
9393
pub fn init_with_mut(ctr: impl FnOnce(&mut S)) -> Self {
9494
let mut secret = Self::default();
@@ -97,7 +97,7 @@ impl<S: Zeroize + Default + ?Sized> SecretBox<S> {
9797
}
9898
}
9999

100-
impl<S: Zeroize + Clone + ?Sized> SecretBox<S> {
100+
impl<S: Zeroize + Clone> SecretBox<S> {
101101
/// Create a secret value using the provided function as a constructor.
102102
///
103103
/// The implementation makes an effort to zeroize the locally constructed value
@@ -130,7 +130,7 @@ impl<S: Zeroize + Clone + ?Sized> SecretBox<S> {
130130
}
131131
}
132132

133-
impl<S: Zeroize + ?Sized + Default> Default for SecretBox<S> {
133+
impl<S: Zeroize + Default> Default for SecretBox<S> {
134134
fn default() -> Self {
135135
Self {
136136
inner_secret: Box::<S>::default(),

0 commit comments

Comments
 (0)