-
-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(core): simplify fade_backlight_duration
#4606
base: main
Are you sure you want to change the base?
Conversation
- IIUC, casting to and from `i32` can be removed. - `timer.elapsed()` can be evaluated once per loop iteration. - Removed unused `impl_lerp_for_...` definitions. [no changelog]
|
core/embed/rust/src/ui/lerp.rs
Outdated
impl_lerp_for_unsigned!(u8); | ||
impl_lerp_for_unsigned!(u16); | ||
impl_lerp_for_unsigned!(u32); | ||
|
||
impl_lerp_for_signed!(f32); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any specific reason to remove those? they won't be compiled in when unused, and it seems generally useful to have them available for all types
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're right - I will revert this change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted in fb6b11b.
i32
can be removed.timer.elapsed()
can be evaluated once per loop iteration.