mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-07-25 16:08:32 +00:00
fixup! feat(core/rust): bootloader compilation with rust
This commit is contained in:
parent
4e4d4a6267
commit
440442ba8c
@ -1,10 +1,10 @@
|
|||||||
use core::{convert::Infallible, num::TryFromIntError};
|
use core::{convert::Infallible, num::TryFromIntError};
|
||||||
|
use cstr_core::CStr;
|
||||||
|
|
||||||
#[cfg(feature = "micropython")]
|
#[cfg(feature = "micropython")]
|
||||||
use {
|
use {
|
||||||
crate::micropython::{ffi, obj::Obj, qstr::Qstr},
|
crate::micropython::{ffi, obj::Obj, qstr::Qstr},
|
||||||
core::convert::TryInto,
|
core::convert::TryInto,
|
||||||
cstr_core::CStr,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#[allow(clippy::enum_variant_names)] // We mimic the Python exception classnames here.
|
#[allow(clippy::enum_variant_names)] // We mimic the Python exception classnames here.
|
||||||
@ -20,7 +20,6 @@ pub enum Error {
|
|||||||
KeyError(Obj),
|
KeyError(Obj),
|
||||||
#[cfg(feature = "micropython")]
|
#[cfg(feature = "micropython")]
|
||||||
AttributeError(Qstr),
|
AttributeError(Qstr),
|
||||||
#[cfg(feature = "micropython")]
|
|
||||||
ValueError(&'static CStr),
|
ValueError(&'static CStr),
|
||||||
#[cfg(feature = "micropython")]
|
#[cfg(feature = "micropython")]
|
||||||
ValueErrorParam(&'static CStr, Obj),
|
ValueErrorParam(&'static CStr, Obj),
|
||||||
|
Loading…
Reference in New Issue
Block a user