chore: group use statements by category

This commit is contained in:
Valentin Weber 2025-07-16 20:03:50 +02:00
parent a9b38fb427
commit 5d63cc8e48
No known key found for this signature in database
GPG key ID: 44797000F143F522

View file

@ -1,5 +1,7 @@
//! Protocol used to update the badge //! Protocol used to update the badge
use std::num::TryFromIntError;
#[cfg(feature = "embedded-graphics")] #[cfg(feature = "embedded-graphics")]
use embedded_graphics::{ use embedded_graphics::{
draw_target::DrawTarget, draw_target::DrawTarget,
@ -9,7 +11,6 @@ use embedded_graphics::{
primitives::Rectangle, primitives::Rectangle,
Drawable, Drawable,
}; };
use std::num::TryFromIntError;
use time::OffsetDateTime; use time::OffsetDateTime;
use zerocopy::{BigEndian, FromBytes, Immutable, IntoBytes, KnownLayout, U16}; use zerocopy::{BigEndian, FromBytes, Immutable, IntoBytes, KnownLayout, U16};
@ -521,9 +522,10 @@ impl DrawTarget for MessageBuffer<'_> {
#[cfg(test)] #[cfg(test)]
mod test { mod test {
use super::{Brightness, Speed};
use std::ops::Range; use std::ops::Range;
use super::{Brightness, Speed};
#[test] #[test]
fn speed_to_u8_and_back() { fn speed_to_u8_and_back() {
const VALID_SPEED_VALUES: Range<u8> = 1..8; const VALID_SPEED_VALUES: Range<u8> = 1..8;