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 e61c8d9 commit cd6ce2fCopy full SHA for cd6ce2f
dispatch/src/dispatch.rs
@@ -390,7 +390,7 @@ impl<'pipe> ApduDispatch<'pipe> {
390
_ => panic!("Unexpected buffer state."),
391
};
392
393
- let old_aid = mem::replace(&mut self.current_aid, Some(aid));
+ let old_aid = self.current_aid.replace(aid);
394
if let Some(old_aid) = old_aid {
395
if old_aid != aid {
396
let app = Self::find_app(self.current_aid.as_ref(), apps).unwrap();
0 commit comments