Replace Level: Into<bool>
with From<Level>
This automatically implements Into<bool> for Level
This commit is contained in:
parent
f98ba4ebac
commit
64e610fef7
@ -88,9 +88,9 @@ impl From<bool> for Level {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Into<bool> for Level {
|
impl From<Level> for bool {
|
||||||
fn into(self) -> bool {
|
fn from(level: Level) -> bool {
|
||||||
match self {
|
match level {
|
||||||
Level::Low => false,
|
Level::Low => false,
|
||||||
Level::High => true,
|
Level::High => true,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user