mirror of
https://github.com/trussed-dev/apdu-dispatch.git
synced 2026-06-20 04:16:15 -07:00
Fix clippy lint
This commit is contained in:
@@ -389,7 +389,7 @@ impl<'pipe> ApduDispatch<'pipe> {
|
||||
_ => panic!("Unexpected buffer state."),
|
||||
};
|
||||
|
||||
let old_aid = mem::replace(&mut self.current_aid, Some(aid));
|
||||
let old_aid = self.current_aid.replace(aid);
|
||||
if let Some(old_aid) = old_aid {
|
||||
if old_aid != aid {
|
||||
let app = Self::find_app(self.current_aid.as_ref(), apps).unwrap();
|
||||
|
||||
Reference in New Issue
Block a user