Merge pull request #1534 from ExplodingWaffle/main
Replace Into<bool> for Level with From<Level> for bool
This commit is contained in:
commit
f6d75970d8
@ -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