1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-24 15:38:22 +00:00

fixup! feat(core/rust): bootloader compilation with rust

This commit is contained in:
tychovrahe 2022-10-19 17:05:51 +02:00
parent 4e4d4a6267
commit 440442ba8c

View File

@ -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),