1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-06-26 01:42:34 +00:00

style(core): fix a few Rust lints

[no changelog]
This commit is contained in:
Roman Zeyde 2025-06-09 23:08:58 +03:00 committed by Roman Zeyde
parent f2564573eb
commit a9f59f6dd6
4 changed files with 6 additions and 6 deletions

View File

@ -115,11 +115,11 @@ version = "0.2.2"
[dependencies.heapless] [dependencies.heapless]
version = "0.8.0" version = "0.8.0"
features = ["ufmt"] features = ["ufmt"]
default_features = false default-features = false
[dependencies.num-traits] [dependencies.num-traits]
version = "0.2.19" version = "0.2.19"
default_features = false default-features = false
features = ["libm"] features = ["libm"]
[dependencies.num-derive] [dependencies.num-derive]
@ -154,7 +154,7 @@ default-features = false
[build-dependencies.bindgen] [build-dependencies.bindgen]
version = "0.62.0" version = "0.62.0"
default_features = false default-features = false
features = ["runtime"] features = ["runtime"]
# Build dependencies used for linking the test binary # Build dependencies used for linking the test binary

View File

@ -106,7 +106,7 @@ impl<'s> Shape<'s> for LoaderCircular {
} }
impl<'s> ShapeClone<'s> for LoaderCircular { impl<'s> ShapeClone<'s> for LoaderCircular {
fn clone_at_bump<T>(self, bump: &'s T) -> Option<&'s mut dyn Shape> fn clone_at_bump<T>(self, bump: &'s T) -> Option<&'s mut dyn Shape<'s>>
where where
T: LocalAllocLeakExt<'s>, T: LocalAllocLeakExt<'s>,
{ {

View File

@ -78,7 +78,7 @@ impl Shape<'_> for LoaderSmall {
} }
impl<'s> ShapeClone<'s> for LoaderSmall { impl<'s> ShapeClone<'s> for LoaderSmall {
fn clone_at_bump<T>(self, bump: &'s T) -> Option<&'s mut dyn Shape> fn clone_at_bump<T>(self, bump: &'s T) -> Option<&'s mut dyn Shape<'s>>
where where
T: LocalAllocLeakExt<'s>, T: LocalAllocLeakExt<'s>,
{ {

View File

@ -95,7 +95,7 @@ impl Shape<'_> for LoaderStarry {
} }
impl<'s> ShapeClone<'s> for LoaderStarry { impl<'s> ShapeClone<'s> for LoaderStarry {
fn clone_at_bump<T>(self, bump: &'s T) -> Option<&'s mut dyn Shape> fn clone_at_bump<T>(self, bump: &'s T) -> Option<&'s mut dyn Shape<'s>>
where where
T: LocalAllocLeakExt<'s>, T: LocalAllocLeakExt<'s>,
{ {