From 4463cd960f484892986a81b2e534d56fc2f414e3 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Thu, 20 Mar 2025 21:10:36 +0200 Subject: [PATCH] fixup! fix(core): don't use `'static` lifetime for `BLEEvent` --- core/embed/rust/src/ui/event/ble.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/embed/rust/src/ui/event/ble.rs b/core/embed/rust/src/ui/event/ble.rs index eaec6b93ef..2dba08bec8 100644 --- a/core/embed/rust/src/ui/event/ble.rs +++ b/core/embed/rust/src/ui/event/ble.rs @@ -18,7 +18,8 @@ impl BLEEvent { 2 => Self::Disconnected, 3 => { let code_str = str::from_utf8(data).map_err(|_| value_error!(c"Non-UTF code"))?; - let code = u32::from_str_radix(code_str, 10) + let code = code_str + .parse() .map_err(|_| value_error!(c"Non-decimal code"))?; Self::PairingRequest(code) }