mirror of
https://github.com/fossasia/badgemagic-rs
synced 2025-07-27 05:53:57 +00:00
chore: group use statements by category
This commit is contained in:
parent
a9b38fb427
commit
5d63cc8e48
1 changed files with 4 additions and 2 deletions
|
@ -1,5 +1,7 @@
|
|||
//! Protocol used to update the badge
|
||||
|
||||
use std::num::TryFromIntError;
|
||||
|
||||
#[cfg(feature = "embedded-graphics")]
|
||||
use embedded_graphics::{
|
||||
draw_target::DrawTarget,
|
||||
|
@ -9,7 +11,6 @@ use embedded_graphics::{
|
|||
primitives::Rectangle,
|
||||
Drawable,
|
||||
};
|
||||
use std::num::TryFromIntError;
|
||||
use time::OffsetDateTime;
|
||||
use zerocopy::{BigEndian, FromBytes, Immutable, IntoBytes, KnownLayout, U16};
|
||||
|
||||
|
@ -521,9 +522,10 @@ impl DrawTarget for MessageBuffer<'_> {
|
|||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use super::{Brightness, Speed};
|
||||
use std::ops::Range;
|
||||
|
||||
use super::{Brightness, Speed};
|
||||
|
||||
#[test]
|
||||
fn speed_to_u8_and_back() {
|
||||
const VALID_SPEED_VALUES: Range<u8> = 1..8;
|
||||
|
|
Loading…
Reference in a new issue