aboutsummaryrefslogtreecommitdiffstats
path: root/src/cipherstring.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2020-10-12 23:35:45 -0400
committerJesse Luehrs <doy@tozt.net>2020-10-12 23:35:45 -0400
commit6c7dffa41b6eca2c8aac641c469f2f754c218548 (patch)
treeb735740c60b007a962a55cca3a27891ea5f6566b /src/cipherstring.rs
parentd756b9a6dc4da4bdd889e5dc7c64c50d9d96cdd9 (diff)
downloadrbw-6c7dffa41b6eca2c8aac641c469f2f754c218548.tar.gz
rbw-6c7dffa41b6eca2c8aac641c469f2f754c218548.zip
clippy
Diffstat (limited to 'src/cipherstring.rs')
-rw-r--r--src/cipherstring.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cipherstring.rs b/src/cipherstring.rs
index 7f9ce31..d8e27f0 100644
--- a/src/cipherstring.rs
+++ b/src/cipherstring.rs
@@ -70,7 +70,7 @@ impl CipherString {
// the only difference between 4 and 6 is the HMAC256 signature appended at the end
// https://github.com/bitwarden/jslib/blob/785b681f61f81690de6df55159ab07ae710bcfad/src/enums/encryptionType.ts#L8
// format is: <cipher_text_b64>|<hmac_sig>
- let contents = contents.split("|").next().unwrap();
+ let contents = contents.split('|').next().unwrap();
let ciphertext = base64::decode(contents)
.context(crate::error::InvalidBase64)?;
Ok(Self::Asymmetric { ciphertext })