chore: rename "as u8" to "as Self" when implementing From Trait

This commit is contained in:
2021-03-20 21:10:48 -05:00
parent cd0eac9d37
commit fc303b6265
3 changed files with 7 additions and 7 deletions

View File

@@ -43,7 +43,7 @@ impl From<u8> for TimerSpeed {
impl From<TimerSpeed> for u8 {
fn from(speed: TimerSpeed) -> Self {
speed as u8
speed as Self
}
}