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 {
|
||||
fn into(self) -> bool {
|
||||
match self {
|
||||
impl From<Level> for bool {
|
||||
fn from(level: Level) -> bool {
|
||||
match level {
|
||||
Level::Low => false,
|
||||
Level::High => true,
|
||||
}
|
||||
|
@ -341,9 +341,9 @@ impl From<bool> for Level {
|
||||
}
|
||||
}
|
||||
|
||||
impl Into<bool> for Level {
|
||||
fn into(self) -> bool {
|
||||
match self {
|
||||
impl From<Level> for bool {
|
||||
fn from(level: Level) -> bool {
|
||||
match level {
|
||||
Level::Low => false,
|
||||
Level::High => true,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user