Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
surban committed Aug 19, 2023
1 parent a3b024e commit 1eb9b55
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions openemc-firmware/src/watchman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,7 @@ impl Watchman {

/// Unlocks access to `set_*` functions.
pub fn unlock(&mut self, unlock_code: u64) {
if unlock_code == Self::UNLOCK_CODE {
self.unlocked = true;
} else {
self.unlocked = false;
}
self.unlocked = unlock_code == Self::UNLOCK_CODE;
}

/// Returns whether access to `set_*` functions is unlocked.
Expand Down

0 comments on commit 1eb9b55

Please sign in to comment.