Replace Into<bool> for Level with From<Level> for bool
This commit is contained in:
parent
f2c2536cf3
commit
a4b8fc420a
@ -31,9 +31,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,
|
||||||
}
|
}
|
||||||
|
@ -341,9 +341,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…
Reference in New Issue
Block a user