Commit 0131d7e07778773eeca0ff37f3bee74c6fb55ed9

constantoine 2022-10-10T11:12:44

Cargo fmt Signed-off-by: constantoine <cleo.rebert-ext@treezor.com>

diff --git a/Cargo.toml b/Cargo.toml
index ec56a91..6a25c01 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -15,7 +15,7 @@ categories = ["authentication", "web-programming"]
 features = [ "qr", "serde_support", "otpauth" ]
 
 [features]
-default = []
+default = ["qr", "gen_secret"]
 otpauth = ["url", "urlencoding"]
 qr = ["qrcodegen", "image", "base64", "otpauth"]
 serde_support = ["serde"]
diff --git a/src/rfc.rs b/src/rfc.rs
index 38a0ede..34204a7 100644
--- a/src/rfc.rs
+++ b/src/rfc.rs
@@ -357,7 +357,8 @@ mod tests {
         let error = Rfc6238Error::SecretTooSmall(120);
         assert_eq!(
             error.to_string(),
-            "The length of the shared secret MUST be at least 128 bits. 120 bits is not enough".to_string()
+            "The length of the shared secret MUST be at least 128 bits. 120 bits is not enough"
+                .to_string()
         )
     }
 }