Skip to content

Commit

Permalink
Merge pull request #134 from Nitrokey/warning
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
sosthene-nitrokey authored Apr 11, 2023
2 parents e569230 + 1631ca4 commit 8420ff7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -895,8 +895,7 @@ impl UserVerifiedInner {
}
}
fn clear(&mut self, client: &mut impl trussed::Client) {
let this = take(self);
if let Some(k) = this.user_kek() {
if let Some(k) = take(self).user_kek() {
syscall!(client.delete(k));
}
}
Expand Down

0 comments on commit 8420ff7

Please sign in to comment.