From 0131d7e07778773eeca0ff37f3bee74c6fb55ed9 Mon Sep 17 00:00:00 2001 From: constantoine Date: Mon, 10 Oct 2022 11:12:44 +0200 Subject: [PATCH] Cargo fmt Signed-off-by: constantoine --- Cargo.toml | 2 +- src/rfc.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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() ) } }