chore: clippy

This commit is contained in:
Gabriele Musco 2025-08-19 07:12:58 +02:00
commit 0402e2cdab
2 changed files with 4 additions and 4 deletions

View file

@ -107,13 +107,13 @@ impl From<&LogLevel> for u32 {
impl PartialOrd for LogLevel {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(u32::from(self).cmp(&other.into()))
Some(self.cmp(other))
}
}
impl Ord for LogLevel {
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
self.partial_cmp(other).unwrap()
u32::from(self).cmp(&other.into())
}
}

View file

@ -207,13 +207,13 @@ impl From<&XRDeviceRole> for u32 {
impl PartialOrd for XRDeviceRole {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
Some(u32::from(self).cmp(&other.into()))
Some(self.cmp(other))
}
}
impl Ord for XRDeviceRole {
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
self.partial_cmp(other).unwrap()
u32::from(self).cmp(&other.into())
}
}