We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7b3b2d commit 0cc45c2Copy full SHA for 0cc45c2
dispatch/src/dispatch.rs
@@ -389,7 +389,7 @@ impl<'pipe> ApduDispatch<'pipe> {
389
_ => panic!("Unexpected buffer state."),
390
};
391
392
- let old_aid = mem::replace(&mut self.current_aid, Some(aid));
+ let old_aid = self.current_aid.replace(aid);
393
if let Some(old_aid) = old_aid {
394
if old_aid != aid {
395
let app = Self::find_app(self.current_aid.as_ref(), apps).unwrap();
0 commit comments