Skip to content

Commit

Permalink
impl fmt::Debug for Version
Browse files Browse the repository at this point in the history
  • Loading branch information
rasmusgo authored and Ralith committed Jul 26, 2024
1 parent 34dbdc8 commit 3d7928c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sys/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ wrapper! {
}

wrapper! {
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash)]
Version(u64)
}

Expand Down Expand Up @@ -191,6 +191,12 @@ impl fmt::Display for Version {
}
}

impl fmt::Debug for Version {
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
write!(fmt, "{}.{}.{}", self.major(), self.minor(), self.patch())
}
}

pub const FREQUENCY_UNSPECIFIED: f32 = 0.0;

impl Quaternionf {
Expand Down

0 comments on commit 3d7928c

Please sign in to comment.