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() ) } }