Skip to content

Commit 5bebe96

Browse files
Derive Debug for times
1 parent 4a1a019 commit 5bebe96

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)