Skip to content

Commit eaefada

Browse files
Merge #211
211: Derive Debug for times r=therealprof a=AlyoshaVasilieva Matches f1xx, h7xx, probably other HALs. Co-authored-by: Malloc Voidstar <[email protected]>
2 parents 4a1a019 + 5bebe96 commit eaefada

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/time.rs

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/// Bits per second
2-
#[derive(PartialEq, PartialOrd, Clone, Copy)]
2+
#[derive(PartialEq, PartialOrd, Clone, Copy, Debug)]
33
pub struct Bps(pub u32);
44

5-
#[derive(PartialEq, PartialOrd, Clone, Copy)]
5+
#[derive(PartialEq, PartialOrd, Clone, Copy, Debug)]
66
pub struct Hertz(pub u32);
77

8-
#[derive(PartialEq, PartialOrd, Clone, Copy)]
8+
#[derive(PartialEq, PartialOrd, Clone, Copy, Debug)]
99
pub struct KiloHertz(pub u32);
1010

11-
#[derive(PartialEq, PartialOrd, Clone, Copy)]
11+
#[derive(PartialEq, PartialOrd, Clone, Copy, Debug)]
1212
pub struct MegaHertz(pub u32);
1313

1414
/// Extension trait that adds convenience methods to the `u32` type
@@ -76,5 +76,5 @@ impl Into<KiloHertz> for MegaHertz {
7676
}
7777

7878
/// Time unit
79-
#[derive(PartialEq, PartialOrd, Clone, Copy)]
79+
#[derive(PartialEq, PartialOrd, Clone, Copy, Debug)]
8080
pub struct MilliSeconds(pub u32);

0 commit comments

Comments
 (0)