Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/workspace.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- uses: actions/checkout@v6
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: 1.89 # pinned to prevent breakages when new rust versions are released
toolchain: 1.92 # pinned to prevent breakages when new rust versions are released
components: clippy
- run: cargo clippy --all-features

Expand Down
8 changes: 2 additions & 6 deletions ssh-key/src/certificate/cert_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ use encoding::{Decode, Encode, Reader, Writer};
/// Types of OpenSSH certificates: user or host.
#[derive(Copy, Clone, Debug, Eq, PartialEq, PartialOrd, Ord)]
#[repr(u32)]
#[derive(Default)]
pub enum CertType {
/// User certificate
#[default]
User = 1,

/// Host certificate
Expand All @@ -26,12 +28,6 @@ impl CertType {
}
}

impl Default for CertType {
fn default() -> Self {
Self::User
}
}

impl Decode for CertType {
type Error = Error;

Expand Down
2 changes: 0 additions & 2 deletions ssh-key/src/fingerprint/randomart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ pub(super) struct Randomart<'a> {

impl<'a> Randomart<'a> {
/// Create new "randomart" from the given fingerprint.
// TODO: Remove this when the pipeline toolchain is updated beyond 1.69
#[allow(clippy::arithmetic_side_effects)]
pub(super) fn new(header: &'a str, fingerprint: Fingerprint) -> Self {
let mut field = Field::default();
let mut x = WIDTH / 2;
Expand Down
8 changes: 2 additions & 6 deletions ssh-key/src/kdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ const DEFAULT_SALT_SIZE: usize = 16;
/// Key Derivation Functions (KDF).
#[derive(Clone, Debug, Eq, PartialEq)]
#[non_exhaustive]
#[derive(Default)]
pub enum Kdf {
/// No KDF.
#[default]
None,

/// bcrypt-pbkdf options.
Expand Down Expand Up @@ -124,12 +126,6 @@ impl Kdf {
}
}

impl Default for Kdf {
fn default() -> Self {
Self::None
}
}

impl Decode for Kdf {
type Error = Error;

Expand Down