From 0cc45c27ffac448148db5f9326098d97a0dbb76e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sosth=C3=A8ne=20Gu=C3=A9don?= Date: Fri, 3 Oct 2025 17:52:50 +0200 Subject: [PATCH] Fix clippy lint --- dispatch/src/dispatch.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dispatch/src/dispatch.rs b/dispatch/src/dispatch.rs index fbad70e..c795594 100644 --- a/dispatch/src/dispatch.rs +++ b/dispatch/src/dispatch.rs @@ -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();