mirror of
https://gitlab.com/gabmus/envision.git
synced 2025-09-21 16:58:39 +00:00
chore: clippy
This commit is contained in:
parent
0a46a7d332
commit
0402e2cdab
2 changed files with 4 additions and 4 deletions
|
@ -107,13 +107,13 @@ impl From<&LogLevel> for u32 {
|
||||||
|
|
||||||
impl PartialOrd for LogLevel {
|
impl PartialOrd for LogLevel {
|
||||||
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
|
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 {
|
impl Ord for LogLevel {
|
||||||
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
||||||
self.partial_cmp(other).unwrap()
|
u32::from(self).cmp(&other.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -207,13 +207,13 @@ impl From<&XRDeviceRole> for u32 {
|
||||||
|
|
||||||
impl PartialOrd for XRDeviceRole {
|
impl PartialOrd for XRDeviceRole {
|
||||||
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
|
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 {
|
impl Ord for XRDeviceRole {
|
||||||
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
fn cmp(&self, other: &Self) -> std::cmp::Ordering {
|
||||||
self.partial_cmp(other).unwrap()
|
u32::from(self).cmp(&other.into())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue