Skip to content

Commit 0cc45c2

Browse files
Fix clippy lint
1 parent e7b3b2d commit 0cc45c2

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
@@ -389,7 +389,7 @@ impl<'pipe> ApduDispatch<'pipe> {
389389
_ => panic!("Unexpected buffer state."),
390390
};
391391

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

0 commit comments

Comments
 (0)