Skip to content

Commit

Permalink
♻️ use `#[derive(Default)]
Browse files Browse the repository at this point in the history
  • Loading branch information
ChanTsune committed Sep 21, 2023
1 parent 4279aa6 commit 7488357
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions cli/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,13 @@ impl CipherAlgorithmArgs {
}
}

#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, ValueEnum)]
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Debug, Default, ValueEnum)]
pub(crate) enum CipherMode {
Cbc,
#[default]
Ctr,
}

impl Default for CipherMode {
fn default() -> Self {
Self::Ctr
}
}

#[cfg(test)]
mod tests {
use super::*;
Expand Down

0 comments on commit 7488357

Please sign in to comment.