Skip to content

Commit

Permalink
Fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
taesungh committed May 30, 2024
1 parent 2759afa commit ae6e33e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pod-operation/src/components/wheel_encoder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ enum EncoderDiff {

impl From<EncoderDiff> for i16 {
fn from(value: EncoderDiff) -> Self {
return i16::from(i8::from(value));
i16::from(i8::from(value))
}
}

impl From<EncoderDiff> for f32 {
fn from(value: EncoderDiff) -> Self {
return f32::from(i8::from(value));
f32::from(i8::from(value))
}
}

Expand Down Expand Up @@ -164,7 +164,6 @@ mod tests {
fn encoder_diff_undersampling() {
let state_1 = encode_state(Level::High, Level::Low);
let state_2 = encode_state(Level::Low, Level::High);
println!("{}", i8::from(state_2 - state_1));
assert_eq!(state_2 - state_1, EncoderDiff::Undersampling);
}
}

0 comments on commit ae6e33e

Please sign in to comment.