From 440442ba8c95fc246b943ffbe7f877968502bed7 Mon Sep 17 00:00:00 2001 From: tychovrahe Date: Wed, 19 Oct 2022 17:05:51 +0200 Subject: [PATCH] fixup! feat(core/rust): bootloader compilation with rust --- core/embed/rust/src/error.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/embed/rust/src/error.rs b/core/embed/rust/src/error.rs index 6d8bab058c..813230e7df 100644 --- a/core/embed/rust/src/error.rs +++ b/core/embed/rust/src/error.rs @@ -1,10 +1,10 @@ use core::{convert::Infallible, num::TryFromIntError}; +use cstr_core::CStr; #[cfg(feature = "micropython")] use { crate::micropython::{ffi, obj::Obj, qstr::Qstr}, core::convert::TryInto, - cstr_core::CStr, }; #[allow(clippy::enum_variant_names)] // We mimic the Python exception classnames here. @@ -20,7 +20,6 @@ pub enum Error { KeyError(Obj), #[cfg(feature = "micropython")] AttributeError(Qstr), - #[cfg(feature = "micropython")] ValueError(&'static CStr), #[cfg(feature = "micropython")] ValueErrorParam(&'static CStr, Obj),