Skip to content

Commit

Permalink
Remove useless .as_str()
Browse files Browse the repository at this point in the history
  • Loading branch information
breard-r committed Dec 9, 2023
1 parent ce3a300 commit 4227295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oath/hotp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ impl HOTP {
let end = self.counter + 1 + self.look_ahead;
for counter in self.counter..end {
let r1 = self.raw_generate(counter);
let ref_code = r1.as_str().as_bytes();
let ref_code = r1.as_bytes();
let code = code.as_bytes();
let (code, ref_code) = match self.hash_function {
HashFunction::Sha1 => (
Expand Down

0 comments on commit 4227295

Please sign in to comment.