Skip to content

Commit cd6ce2f

Browse files
Fix clippy lint
1 parent e61c8d9 commit cd6ce2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dispatch/src/dispatch.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ impl<'pipe> ApduDispatch<'pipe> {
390390
_ => panic!("Unexpected buffer state."),
391391
};
392392

393-
let old_aid = mem::replace(&mut self.current_aid, Some(aid));
393+
let old_aid = self.current_aid.replace(aid);
394394
if let Some(old_aid) = old_aid {
395395
if old_aid != aid {
396396
let app = Self::find_app(self.current_aid.as_ref(), apps).unwrap();

0 commit comments

Comments
 (0)