Skip to content

Commit 6b8ac87

Browse files
th4ssinui0
authored andcommitted
simplify flush
1 parent cf15673 commit 6b8ac87

File tree

1 file changed

+1
-2
lines changed
  • crates/components/hmac-sha256/src

1 file changed

+1
-2
lines changed

crates/components/hmac-sha256/src/prf.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ impl MpcPrf {
199199

200200
/// Flushes the PRF.
201201
pub fn flush(&mut self, vm: &mut dyn Vm<Binary>) -> Result<(), PrfError> {
202-
let state = match self.state.take() {
202+
self.state = match self.state.take() {
203203
State::SessionKeys {
204204
client_random,
205205
mut master_secret,
@@ -254,7 +254,6 @@ impl MpcPrf {
254254
other => other,
255255
};
256256

257-
self.state = state;
258257
Ok(())
259258
}
260259
}

0 commit comments

Comments
 (0)