From a25cae9433d407e4cc3bac3670d174b3984de3c7 Mon Sep 17 00:00:00 2001 From: adrian-kong Date: Tue, 20 Dec 2022 12:08:08 +1100 Subject: [PATCH] rust clippy --- rust/sbp/src/swiftnav_conversions.rs | 6 +++--- rust/sbp2json/tests/common/mod.rs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rust/sbp/src/swiftnav_conversions.rs b/rust/sbp/src/swiftnav_conversions.rs index 7c0ed7dd29..814294dd03 100644 --- a/rust/sbp/src/swiftnav_conversions.rs +++ b/rust/sbp/src/swiftnav_conversions.rs @@ -148,12 +148,12 @@ impl TryFrom for swiftnav::ephemeris::Ep eph.w, eph.inc, eph.inc_dot, - eph.af0 as f64, - eph.af1 as f64, + eph.af0, + eph.af1, eph.af2 as f64, eph.toc.try_into()?, eph.iodc, - eph.iode as u16, + eph.iode, ), )) } diff --git a/rust/sbp2json/tests/common/mod.rs b/rust/sbp2json/tests/common/mod.rs index 4e734c304c..208f68edd4 100644 --- a/rust/sbp2json/tests/common/mod.rs +++ b/rust/sbp2json/tests/common/mod.rs @@ -156,7 +156,7 @@ pub fn test_round_trip( del_test_output.add_test_output(&output_path); let input_file = - File::open(&input_path).expect("could not open second transform input file"); + File::open(input_path).expect("could not open second transform input file"); let output_file = File::create(&output_path).expect("could not create second transform output file");