Skip to content

Commit

Permalink
Apply fixes to clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sunsided committed Jul 14, 2024
1 parent ddcea31 commit b27276d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions examples/simulation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ fn main() -> Result<(), Box<dyn Error>> {
Ok(())
}

#[allow(clippy::too_many_arguments)]
fn display_times_and_indexes(
gyro: &[Timed<GyroscopeReading<f32>>],
compass: &[Timed<MagnetometerReading<f32>>],
Expand All @@ -688,7 +689,7 @@ fn display_times_and_indexes(
&info,
&Point2::new(0.0, 0.0),
32.0,
&font,
font,
&Point3::new(1.0, 1.0, 1.0),
);

Expand All @@ -698,7 +699,7 @@ fn display_times_and_indexes(
&info,
&Point2::new(0.0, 32.0),
32.0,
&font,
font,
&Point3::new(1.0, 1.0, 1.0),
);

Expand All @@ -708,7 +709,7 @@ fn display_times_and_indexes(
&info,
&Point2::new(0.0, 32.0 + 32.0),
32.0,
&font,
font,
&Point3::new(1.0, 1.0, 1.0),
);

Expand All @@ -721,7 +722,7 @@ fn display_times_and_indexes(
&info,
&Point2::new(0.0, 32.0 + 2.0 * 32.0),
32.0,
&font,
font,
&Point3::new(1.0, 1.0, 1.0),
);

Expand All @@ -731,7 +732,7 @@ fn display_times_and_indexes(
&info,
&Point2::new(0.0, 32.0 + 3.0 * 32.0),
32.0,
&font,
font,
&Point3::new(1.0, 1.0, 1.0),
);
}
Expand Down
1 change: 1 addition & 0 deletions src/test_estimator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -855,6 +855,7 @@ type OwnedObservation<T> = RegularObservation<

#[cfg(test)]
#[cfg(feature = "std")]
#[allow(deprecated)]
mod tests {
use super::*;

Expand Down

0 comments on commit b27276d

Please sign in to comment.