Skip to content

Commit 89105dc

Browse files
authored
chore: resolve clippy lint
1 parent bf998e5 commit 89105dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/otp/algorithms/yandex_otp_maker.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ where
7676

7777
let parsed_secret = &decoded_secret.as_slice()[0..SECRET_LENGHT];
7878

79-
let mut pin_with_secret: Vec<u8> = Vec::with_capacity(pin.as_bytes().len() + SECRET_LENGHT);
79+
let mut pin_with_secret: Vec<u8> = Vec::with_capacity(pin.len() + SECRET_LENGHT);
8080

8181
pin_with_secret.append(&mut pin.as_bytes().to_vec());
8282
pin_with_secret.append(&mut parsed_secret.to_vec());

0 commit comments

Comments
 (0)