Replace Level: Into<bool>
with From<Level>
This automatically implements Into<bool> for Level
This commit is contained in:
parent
f98ba4ebac
commit
64e610fef7
1 changed files with 3 additions and 3 deletions
|
@ -88,9 +88,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 a new issue