Skip to content

Commit

Permalink
implement Default for Algorithm
Browse files Browse the repository at this point in the history
ed25519 is used as the default algorithm in a lot of places
  • Loading branch information
divarvel committed Jan 13, 2025
1 parent 1d5edf7 commit eba5477
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions biscuit-auth/src/token/builder/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ pub enum Algorithm {
Secp256r1,
}

impl Default for Algorithm {
fn default() -> Self {
Self::Ed25519
}
}

impl Display for Algorithm {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {
Expand Down

0 comments on commit eba5477

Please sign in to comment.