Skip to content

Commit

Permalink
fix: misspelled configuration feature items
Browse files Browse the repository at this point in the history
New clippy and rustc lints caught these.
  • Loading branch information
alexrudy committed Sep 6, 2024
1 parent abbbe58 commit 8e7739b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/algorithms/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ use serde::{Deserialize, Serialize};
#[cfg(any(feature = "p256", feature = "hmac", feature = "rsa"))]
pub use sha2::Sha256;

#[cfg(any(feature = "p348", feature = "hmac", feature = "rsa"))]
#[cfg(any(feature = "p384", feature = "hmac", feature = "rsa"))]
pub use sha2::Sha384;

#[cfg(any(feature = "hmac", feature = "rsa"))]
Expand Down Expand Up @@ -145,7 +145,7 @@ impl AlgorithmIdentifier {
Self::HS256 | Self::HS384 | Self::HS512 => cfg!(feature = "hmac"),
Self::RS256 | Self::RS384 | Self::RS512 => cfg!(feature = "rsa"),
Self::ES256 | Self::ES384 | Self::ES512 => cfg!(feature = "ecdsa"),
Self::EdDSA => cfg!(feature = "ed25519"),
Self::EdDSA => false, //TODO: implement cfg!(feature = "ed25519"),
Self::PS256 | Self::PS384 | Self::PS512 => cfg!(feature = "rsa"),
}
}
Expand Down

0 comments on commit 8e7739b

Please sign in to comment.