We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c92b07b commit 6295dd3Copy full SHA for 6295dd3
src/otp/otp_algorithm.rs
@@ -13,6 +13,12 @@ pub enum OTPAlgorithm {
13
Md5,
14
}
15
16
+impl Default for OTPAlgorithm {
17
+ fn default() -> Self {
18
+ Self::Sha1
19
+ }
20
+}
21
+
22
impl fmt::Display for OTPAlgorithm {
23
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
24
let to_string = match self {
src/otp/otp_type.rs
@@ -24,6 +24,12 @@ pub enum OTPType {
Motp,
25
26
27
+impl Default for OTPType {
28
29
+ Self::Totp
30
31
32
33
impl fmt::Display for OTPType {
34
35
0 commit comments