Replace `Level: Into<bool>` with `From<Level>`
This automatically implements Into<bool> for Level
@@ -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,
}
