From 8d73e54ffb18042f1e4b0cb0b6d3c3f4dbc01864 Mon Sep 17 00:00:00 2001 From: adrian-kong <35755741+adrian-kong@users.noreply.github.com> Date: Sat, 28 Jan 2023 09:14:52 +1100 Subject: [PATCH] new rust clippy (#1292) --- .../resources/rust/test/sbp_tests_template.rs | 8 +- generator/sbpg/targets/test_rust.py | 6 +- rust/sbp/examples/serial.rs | 2 +- rust/sbp/src/sbp_string.rs | 8 +- ...ck_sbp_acquisition_msg_acq_result_dep_a.rs | 54 +-- ...ck_sbp_acquisition_msg_acq_result_dep_b.rs | 45 +- ...ck_sbp_acquisition_msg_acq_result_dep_c.rs | 45 +- ..._bootload_msg_bootloader_handshake_resp.rs | 54 +-- ...auto_check_sbp_ext_events_msg_ext_event.rs | 9 +- ...check_sbp_file_io_msg_fileio_write_resp.rs | 9 +- .../auto_check_sbp_imu_msg_imu_aux.rs | 9 +- .../auto_check_sbp_imu_msg_imu_raw.rs | 9 +- ...uto_check_sbp_integrity_msg_acknowledge.rs | 9 +- ...k_sbp_integrity_msg_ssr_flag_high_level.rs | 9 +- ...ty_msg_ssr_flag_iono_grid_point_sat_los.rs | 9 +- ...integrity_msg_ssr_flag_iono_grid_points.rs | 9 +- ...ntegrity_msg_ssr_flag_iono_tile_sat_los.rs | 9 +- ...k_sbp_integrity_msg_ssr_flag_satellites.rs | 9 +- ...ntegrity_msg_ssr_flag_tropo_grid_points.rs | 9 +- .../auto_check_sbp_logging_msg_fwd.rs | 9 +- .../auto_check_sbp_logging_msg_log.rs | 63 ++- .../auto_check_sbp_logging_msg_print_dep.rs | 414 +++++++++++------- ...heck_sbp_navigation_msg_age_corrections.rs | 9 +- ..._check_sbp_navigation_msg_baseline_ecef.rs | 45 +- ..._sbp_navigation_msg_baseline_ecef_dep_a.rs | 99 ++--- ...o_check_sbp_navigation_msg_baseline_ned.rs | 45 +- ...k_sbp_navigation_msg_baseline_ned_dep_a.rs | 99 ++--- .../auto_check_sbp_navigation_msg_dops.rs | 9 +- ...uto_check_sbp_navigation_msg_dops_dep_a.rs | 81 ++-- .../auto_check_sbp_navigation_msg_gps_time.rs | 45 +- ...check_sbp_navigation_msg_gps_time_dep_a.rs | 99 ++--- ..._check_sbp_navigation_msg_gps_time_gnss.rs | 45 +- .../auto_check_sbp_navigation_msg_pos_ecef.rs | 36 +- ...o_check_sbp_navigation_msg_pos_ecef_cov.rs | 9 +- ...ck_sbp_navigation_msg_pos_ecef_cov_gnss.rs | 9 +- ...check_sbp_navigation_msg_pos_ecef_dep_a.rs | 99 ++--- ...o_check_sbp_navigation_msg_pos_ecefgnss.rs | 9 +- .../auto_check_sbp_navigation_msg_pos_llh.rs | 45 +- ...to_check_sbp_navigation_msg_pos_llh_cov.rs | 9 +- ...eck_sbp_navigation_msg_pos_llh_cov_gnss.rs | 9 +- ..._check_sbp_navigation_msg_pos_llh_dep_a.rs | 99 ++--- ...o_check_sbp_navigation_msg_pos_llh_gnss.rs | 9 +- ..._check_sbp_navigation_msg_pose_relative.rs | 9 +- ...eck_sbp_navigation_msg_protection_level.rs | 9 +- ...bp_navigation_msg_reference_frame_param.rs | Bin 19850 -> 21524 bytes ...heck_sbp_navigation_msg_utc_leap_second.rs | 9 +- .../auto_check_sbp_navigation_msg_utc_time.rs | 9 +- ..._check_sbp_navigation_msg_utc_time_gnss.rs | 9 +- .../auto_check_sbp_navigation_msg_vel_body.rs | 9 +- .../auto_check_sbp_navigation_msg_vel_cog.rs | 27 +- .../auto_check_sbp_navigation_msg_vel_ecef.rs | 45 +- ...o_check_sbp_navigation_msg_vel_ecef_cov.rs | 9 +- ...ck_sbp_navigation_msg_vel_ecef_cov_gnss.rs | 9 +- ...check_sbp_navigation_msg_vel_ecef_dep_a.rs | 99 ++--- ..._check_sbp_navigation_msg_vel_ecef_gnss.rs | 9 +- .../auto_check_sbp_navigation_msg_vel_ned.rs | 45 +- ...eck_sbp_navigation_msg_vel_ned_cov_gnss.rs | 9 +- ..._check_sbp_navigation_msg_vel_ned_dep_a.rs | 99 ++--- ...o_check_sbp_navigation_msg_vel_ned_gnss.rs | 9 +- ...uto_check_sbp_navigation_msg_vel_nedcov.rs | 9 +- ...check_sbp_observation_msg_base_pos_ecef.rs | 9 +- ...check_sbp_observation_msg_ephemeris_bds.rs | 9 +- ...eck_sbp_observation_msg_ephemeris_dep_b.rs | 54 +-- ...check_sbp_observation_msg_ephemeris_gal.rs | 9 +- ...check_sbp_observation_msg_ephemeris_glo.rs | 9 +- ...check_sbp_observation_msg_ephemeris_gps.rs | 9 +- ...heck_sbp_observation_msg_ephemeris_qzss.rs | 9 +- ...to_check_sbp_observation_msg_glo_biases.rs | 9 +- .../auto_check_sbp_observation_msg_obs.rs | 18 +- ...uto_check_sbp_observation_msg_obs_dep_a.rs | 54 +-- ...uto_check_sbp_observation_msg_obs_dep_b.rs | 45 +- ...uto_check_sbp_observation_msg_obs_dep_c.rs | 45 +- .../auto_check_sbp_observation_msg_osr.rs | 9 +- ...auto_check_sbp_observation_msg_sv_az_el.rs | 9 +- ..._check_sbp_orientation_msg_angular_rate.rs | 9 +- ..._check_sbp_orientation_msg_orient_euler.rs | 9 +- ...o_check_sbp_orientation_msg_orient_quat.rs | 9 +- ...auto_check_sbp_piksi_msg_device_monitor.rs | 45 +- .../auto_check_sbp_piksi_msg_iar_state.rs | 63 +-- ...k_sbp_piksi_msg_network_bandwidth_usage.rs | Bin 26658 -> 27900 bytes .../auto_check_sbp_piksi_msg_thread_state.rs | Bin 74591 -> 77915 bytes .../auto_check_sbp_piksi_msg_uart_state.rs | 18 +- ...to_check_sbp_piksi_msg_uart_state_dep_a.rs | 54 +-- .../auto_check_sbp_sbas_msg_sbas_raw.rs | 9 +- ...ettings_msg_settings_read_by_index_done.rs | 9 +- ...ettings_msg_settings_read_by_index_resp.rs | Bin 34120 -> 40588 bytes ...eck_sbp_signing_msg_ed25519_certificate.rs | 9 +- ...check_sbp_signing_msg_ed25519_signature.rs | 9 +- ...k_sbp_signing_msg_ed25519_signature_dep.rs | 9 +- ...bp_ssr_msg_ssr_code_phase_biases_bounds.rs | 9 +- ...p_ssr_msg_ssr_gridded_correction_bounds.rs | 18 +- ...heck_sbp_ssr_msg_ssr_orbit_clock_bounds.rs | 9 +- ..._msg_ssr_orbit_clock_bounds_degradation.rs | 9 +- ...uto_check_sbp_ssr_msg_ssr_satellite_apc.rs | 9 +- ...o_check_sbp_ssr_msg_ssr_stec_correction.rs | 9 +- ...o_check_sbp_ssr_msg_ssr_tile_definition.rs | 9 +- ...k_sbp_ssr_msg_ssr_tile_definition_dep_b.rs | 9 +- .../auto_check_sbp_system_msg_dgnss_status.rs | 39 +- .../auto_check_sbp_system_msg_group_meta.rs | 18 +- .../auto_check_sbp_system_msg_heartbeat.rs | 18 +- .../auto_check_sbp_system_msg_ins_status.rs | 9 +- .../auto_check_sbp_system_msg_ins_updates.rs | 9 +- ...o_check_sbp_system_msg_sensor_aid_event.rs | 9 +- .../auto_check_sbp_system_msg_startup.rs | 18 +- ...uto_check_sbp_system_msg_status_journal.rs | 18 +- .../auto_check_sbp_telemetry_msg_tel_sv.rs | 9 +- ...heck_sbp_tracking_msg_measurement_state.rs | 9 +- ...o_check_sbp_tracking_msg_tracking_state.rs | 45 +- ...racking_msg_tracking_state_detailed_dep.rs | 45 +- ...ck_sbp_tracking_msgtracking_state_dep_a.rs | 54 +-- .../auto_check_sbp_vehicle_msg_odometry.rs | 9 +- rust/sbp2json/tests/common/mod.rs | 12 +- 112 files changed, 1179 insertions(+), 1911 deletions(-) diff --git a/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs b/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs index 9e0ba38c97..e9f1c09580 100644 --- a/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs +++ b/generator/sbpg/targets/resources/rust/test/sbp_tests_template.rs @@ -15,7 +15,7 @@ use crate::*; ((*- macro compare_value(prefix, value) *)) ((*- if value is string_type *)) -assert_eq!(msg.(((prefix|snake_case))).to_string(), (((value|str_escape))), "incorrect value for msg.(((prefix|snake_case))), expected string '{}', is '{}'", (((value|str_escape))), msg.(((prefix|snake_case)))); +assert_eq!(msg.(((prefix|snake_case))).as_bytes(), (((value|bytes_escape))), "incorrect value for msg.(((prefix|snake_case))), expected string '{:?}', is '{:?}'", (((value|bytes_escape))), msg.(((prefix|snake_case))).as_bytes()); ((*- elif value is array_type *)) ((*- for ff in value *))((( compare_value( (((prefix|snake_case))) + '[' + (((loop.index0|to_str))) + ']', (((ff))) ) )))((*- endfor *)) ((*- elif value is dict_type *)) @@ -52,7 +52,7 @@ fn test_(((s.suite_name|snake_case)))() sbp::messages::Sbp::(((t.msg.name|lower_acronyms)))(msg) => { assert_eq!( msg.message_type(), (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {}", msg.message_type()); let sender_id = msg.sender_id().unwrap(); - assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {}", sender_id); + assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {sender_id}"); ((*- for f in t.fieldskeys *))(((compare_value( (((f))), (((t.fields[f]))) ))))((*- endfor *)) }, _ => panic!("Invalid message type! Expected a (((t.msg.name)))"), @@ -98,7 +98,7 @@ fn test_json2sbp_(((s.suite_name|snake_case)))() sbp::messages::Sbp::(((t.msg.name|lower_acronyms)))(msg) => { assert_eq!( msg.message_type(), (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {}", msg.message_type()); let sender_id = msg.sender_id().unwrap(); - assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {}", sender_id); + assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {sender_id}"); ((*- for f in t.fieldskeys *))(((compare_value( (((f))), (((t.fields[f]))) ))))((*- endfor *)) }, _ => panic!("Invalid message type! Expected a (((t.msg.name)))"), @@ -141,7 +141,7 @@ fn test_sbp2json_(((s.suite_name|snake_case)))() sbp::messages::Sbp::(((t.msg.name|lower_acronyms)))(msg) => { assert_eq!( msg.message_type(), (((t.msg_type))), "Incorrect message type, expected (((t.msg_type))), is {}", msg.message_type()); let sender_id = msg.sender_id().unwrap(); - assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {}", sender_id); + assert_eq!(sender_id, (((t.sbp.sender))), "incorrect sender id, expected (((t.sbp.sender))), is {sender_id}"); ((*- for f in t.fieldskeys *))(((compare_value( (((f))), (((t.fields[f]))) ))))((*- endfor *)) }, _ => panic!("Invalid message type! Expected a (((t.msg.name)))"), diff --git a/generator/sbpg/targets/test_rust.py b/generator/sbpg/targets/test_rust.py index 16ee2d03ce..9c6f897b8d 100644 --- a/generator/sbpg/targets/test_rust.py +++ b/generator/sbpg/targets/test_rust.py @@ -22,14 +22,14 @@ TEST_TEMPLATE_NAME = "rust/test/sbp_tests_template.rs" TEST_MAIN_TEMPLATE_NAME = "rust/test/sbp_tests_main_template.rs" -def str_escape(value): - return "\"{}\"".format(value) +def bytes_escape(value): + return "&{}".format(list(bytes(value, "ascii"))) def mod_name(value): return value.split('.')[1] JENV.filters['to_str'] = to_str -JENV.filters['str_escape'] = str_escape +JENV.filters['bytes_escape'] = bytes_escape JENV.filters['sorted'] = sorted JENV.filters['mod_name'] = mod_name JENV.filters['lower_acronyms'] = lower_acronyms diff --git a/rust/sbp/examples/serial.rs b/rust/sbp/examples/serial.rs index 7030715ec6..07da18c414 100644 --- a/rust/sbp/examples/serial.rs +++ b/rust/sbp/examples/serial.rs @@ -26,7 +26,7 @@ fn main() { Ok(Sbp::MsgLog(x)) => println!("{}", x.text), Ok(Sbp::MsgPosLlh(x)) => println!("{} {} {}", x.lat, x.lon, x.height), Err(e) => { - eprintln!("{:?}", e); + eprintln!("{e:?}"); break; } _ => {} diff --git a/rust/sbp/src/sbp_string.rs b/rust/sbp/src/sbp_string.rs index 75d5078fbd..b7baee92aa 100644 --- a/rust/sbp/src/sbp_string.rs +++ b/rust/sbp/src/sbp_string.rs @@ -226,7 +226,7 @@ impl<'de, E, const LEN: usize> serde::Deserialize<'de> for SbpString<[u8; LEN], Er: Error, { let data = v.as_bytes().try_into().map_err(|_| { - Error::custom(format!("was expecting a string of length {}", LEN)) + Error::custom(format!("was expecting a string of length {LEN}")) })?; Ok(SbpString::new(data)) } @@ -236,7 +236,7 @@ impl<'de, E, const LEN: usize> serde::Deserialize<'de> for SbpString<[u8; LEN], Er: Error, { let data = v.into_bytes().try_into().map_err(|_| { - Error::custom(format!("was expecting a string of length {}", LEN)) + Error::custom(format!("was expecting a string of length {LEN}")) })?; Ok(SbpString::new(data)) } @@ -246,7 +246,7 @@ impl<'de, E, const LEN: usize> serde::Deserialize<'de> for SbpString<[u8; LEN], Er: Error, { let data = v.try_into().map_err(|_| { - Error::custom(format!("was expecting a string of length {}", LEN)) + Error::custom(format!("was expecting a string of length {LEN}")) })?; Ok(SbpString::new(data)) } @@ -256,7 +256,7 @@ impl<'de, E, const LEN: usize> serde::Deserialize<'de> for SbpString<[u8; LEN], Er: Error, { let data = v.try_into().map_err(|_| { - Error::custom(format!("was expecting a string of length {}", LEN)) + Error::custom(format!("was expecting a string of length {LEN}")) })?; Ok(SbpString::new(data)) } diff --git a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_a.rs index 65b20e78db..12222bd7ed 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_a.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(8.24194335937500000e+03), @@ -95,8 +94,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(7.49267639160156250e+02), @@ -147,8 +145,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-6.49365283203125000e+03), @@ -200,8 +197,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-9.99023498535156250e+02), @@ -252,8 +248,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -304,8 +299,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), @@ -377,8 +371,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(8.24194335937500000e+03), @@ -436,8 +429,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(7.49267639160156250e+02), @@ -495,8 +487,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-6.49365283203125000e+03), @@ -554,8 +545,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-9.99023498535156250e+02), @@ -613,8 +603,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -672,8 +661,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), @@ -752,8 +740,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(8.24194335937500000e+03), @@ -823,8 +810,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(7.49267639160156250e+02), @@ -894,8 +880,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-6.49365283203125000e+03), @@ -966,8 +951,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-9.99023498535156250e+02), @@ -1037,8 +1021,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -1108,8 +1091,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), diff --git a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_b.rs b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_b.rs index 7ea49d5ac8..bc2c9e3593 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_b.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_b.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.99511718750000000e+03), @@ -107,8 +106,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-8.24194335937500000e+03), @@ -170,8 +168,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -233,8 +230,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(2.49755859375000000e+03), @@ -296,8 +292,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), @@ -379,8 +374,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.99511718750000000e+03), @@ -448,8 +442,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-8.24194335937500000e+03), @@ -517,8 +510,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -586,8 +578,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(2.49755859375000000e+03), @@ -655,8 +646,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), @@ -746,8 +736,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.99511718750000000e+03), @@ -828,8 +817,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-8.24194335937500000e+03), @@ -910,8 +898,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(4.74536132812500000e+03), @@ -992,8 +979,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(2.49755859375000000e+03), @@ -1074,8 +1060,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_b() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.cf.almost_eq(-4.99511749267578125e+02), diff --git a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_c.rs b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_c.rs index b07c860ca4..30975bc627 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_c.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_acquisition_msg_acq_result_dep_c.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(1.76906591796875000e+03), @@ -107,8 +106,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-5.05447387695312500e+02), @@ -170,8 +168,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-1.26361840820312500e+03), @@ -233,8 +230,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(3.03268432617187500e+03), @@ -296,8 +292,7 @@ fn test_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(2.52723681640625000e+03), @@ -379,8 +374,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(1.76906591796875000e+03), @@ -448,8 +442,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-5.05447387695312500e+02), @@ -517,8 +510,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-1.26361840820312500e+03), @@ -586,8 +578,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(3.03268432617187500e+03), @@ -655,8 +646,7 @@ fn test_json2sbp_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(2.52723681640625000e+03), @@ -746,8 +736,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(1.76906591796875000e+03), @@ -828,8 +817,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-5.05447387695312500e+02), @@ -910,8 +898,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(-1.26361840820312500e+03), @@ -992,8 +979,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(3.03268432617187500e+03), @@ -1074,8 +1060,7 @@ fn test_sbp2json_auto_check_sbp_acquisition_msg_acq_result_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc28, - "incorrect sender id, expected 0xc28, is {}", - sender_id + "incorrect sender id, expected 0xc28, is {sender_id}" ); assert!( msg.cf.almost_eq(2.52723681640625000e+03), diff --git a/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs b/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs index 18a680afea..67fd77df42 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_bootload_msg_bootloader_handshake_resp.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -52,13 +51,11 @@ fn test_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { msg.flags ); assert_eq!( - msg.version.to_string(), - "v1.2 -", - "incorrect value for msg.version, expected string '{}', is '{}'", - "v1.2 -", - msg.version + msg.version.as_bytes(), + &[118, 49, 46, 50, 10], + "incorrect value for msg.version, expected string '{:?}', is '{:?}'", + &[118, 49, 46, 50, 10], + msg.version.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgBootloaderHandshakeResp"), @@ -87,8 +84,7 @@ fn test_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.handshake[0], 118, @@ -160,8 +156,7 @@ fn test_json2sbp_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -169,13 +164,11 @@ fn test_json2sbp_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { msg.flags ); assert_eq!( - msg.version.to_string(), - "v1.2 -", - "incorrect value for msg.version, expected string '{}', is '{}'", - "v1.2 -", - msg.version + msg.version.as_bytes(), + &[118, 49, 46, 50, 10], + "incorrect value for msg.version, expected string '{:?}', is '{:?}'", + &[118, 49, 46, 50, 10], + msg.version.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgBootloaderHandshakeResp"), @@ -213,8 +206,7 @@ fn test_json2sbp_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.handshake[0], 118, @@ -293,8 +285,7 @@ fn test_sbp2json_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0, - "incorrect sender id, expected 0x0, is {}", - sender_id + "incorrect sender id, expected 0x0, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -302,13 +293,11 @@ fn test_sbp2json_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { msg.flags ); assert_eq!( - msg.version.to_string(), - "v1.2 -", - "incorrect value for msg.version, expected string '{}', is '{}'", - "v1.2 -", - msg.version + msg.version.as_bytes(), + &[118, 49, 46, 50, 10], + "incorrect value for msg.version, expected string '{:?}', is '{:?}'", + &[118, 49, 46, 50, 10], + msg.version.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgBootloaderHandshakeResp"), @@ -356,8 +345,7 @@ fn test_sbp2json_auto_check_sbp_bootload_msg_bootloader_handshake_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.handshake[0], 118, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ext_events_msg_ext_event.rs b/rust/sbp/tests/integration/auto_check_sbp_ext_events_msg_ext_event.rs index fb7fb57643..086b36651e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ext_events_msg_ext_event.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ext_events_msg_ext_event.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_ext_events_msg_ext_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x6f5, - "incorrect sender id, expected 0x6f5, is {}", - sender_id + "incorrect sender id, expected 0x6f5, is {sender_id}" ); assert_eq!( msg.flags, 3, @@ -121,8 +120,7 @@ fn test_json2sbp_auto_check_sbp_ext_events_msg_ext_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x6f5, - "incorrect sender id, expected 0x6f5, is {}", - sender_id + "incorrect sender id, expected 0x6f5, is {sender_id}" ); assert_eq!( msg.flags, 3, @@ -206,8 +204,7 @@ fn test_sbp2json_auto_check_sbp_ext_events_msg_ext_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x6f5, - "incorrect sender id, expected 0x6f5, is {}", - sender_id + "incorrect sender id, expected 0x6f5, is {sender_id}" ); assert_eq!( msg.flags, 3, diff --git a/rust/sbp/tests/integration/auto_check_sbp_file_io_msg_fileio_write_resp.rs b/rust/sbp/tests/integration/auto_check_sbp_file_io_msg_fileio_write_resp.rs index d514994cf7..465f9135b8 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_file_io_msg_fileio_write_resp.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_file_io_msg_fileio_write_resp.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_file_io_msg_fileio_write_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.sequence, 202, @@ -99,8 +98,7 @@ fn test_json2sbp_auto_check_sbp_file_io_msg_fileio_write_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.sequence, 202, @@ -162,8 +160,7 @@ fn test_sbp2json_auto_check_sbp_file_io_msg_fileio_write_resp() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.sequence, 202, diff --git a/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_aux.rs b/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_aux.rs index 6431fb8ce9..87a2838959 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_aux.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_aux.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_imu_msg_imu_aux() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.imu_conf, 66, @@ -109,8 +108,7 @@ fn test_json2sbp_auto_check_sbp_imu_msg_imu_aux() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.imu_conf, 66, @@ -182,8 +180,7 @@ fn test_sbp2json_auto_check_sbp_imu_msg_imu_aux() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.imu_conf, 66, diff --git a/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_raw.rs b/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_raw.rs index c39c4700b7..93135aa4cb 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_raw.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_imu_msg_imu_raw.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_imu_msg_imu_raw() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.acc_x, 96, @@ -137,8 +136,7 @@ fn test_json2sbp_auto_check_sbp_imu_msg_imu_raw() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.acc_x, 96, @@ -238,8 +236,7 @@ fn test_sbp2json_auto_check_sbp_imu_msg_imu_raw() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1234, - "incorrect sender id, expected 0x1234, is {}", - sender_id + "incorrect sender id, expected 0x1234, is {sender_id}" ); assert_eq!( msg.acc_x, 96, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_acknowledge.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_acknowledge.rs index 9b3b77edb8..9b6c8007d0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_acknowledge.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_acknowledge.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_integrity_msg_acknowledge() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2A, - "incorrect sender id, expected 0x2A, is {}", - sender_id + "incorrect sender id, expected 0x2A, is {sender_id}" ); assert_eq!( msg.area_id, 123456, @@ -126,8 +125,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_acknowledge() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2A, - "incorrect sender id, expected 0x2A, is {}", - sender_id + "incorrect sender id, expected 0x2A, is {sender_id}" ); assert_eq!( msg.area_id, 123456, @@ -216,8 +214,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_acknowledge() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2A, - "incorrect sender id, expected 0x2A, is {}", - sender_id + "incorrect sender id, expected 0x2A, is {sender_id}" ); assert_eq!( msg.area_id, 123456, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs index 367905f361..a7587c9eb0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_high_level.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_high_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 40, @@ -202,8 +201,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_high_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 40, @@ -368,8 +366,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_high_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 40, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los.rs index 98efc60f53..efd2987ebd 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, @@ -167,8 +166,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los() let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, @@ -298,8 +296,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_point_sat_los() let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points.rs index ae227cfae1..90af8df40a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, @@ -157,8 +156,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, @@ -278,8 +276,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_iono_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los.rs index aa62ed9ab0..d186ba9573 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, @@ -162,8 +161,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, @@ -288,8 +286,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_iono_tile_sat_los() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_los[0].constellation, 11, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_satellites.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_satellites.rs index ce97004db6..c8d5d3cbba 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_satellites.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_satellites.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_satellites() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 4, @@ -151,8 +150,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_satellites() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 4, @@ -266,8 +264,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_satellites() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.chain_id, 4, diff --git a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points.rs b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points.rs index 23a61f6657..69b295642a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, @@ -157,8 +156,7 @@ fn test_json2sbp_auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, @@ -278,8 +276,7 @@ fn test_sbp2json_auto_check_sbp_integrity_msg_ssr_flag_tropo_grid_points() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x0042, - "incorrect sender id, expected 0x0042, is {}", - sender_id + "incorrect sender id, expected 0x0042, is {sender_id}" ); assert_eq!( msg.faulty_points[0], 10, diff --git a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_fwd.rs b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_fwd.rs index 2186a295ea..754c325479 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_fwd.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_fwd.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_logging_msg_fwd() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fwd_payload[0], 86, @@ -187,8 +186,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_fwd() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fwd_payload[0], 86, @@ -338,8 +336,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_fwd() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.fwd_payload[0], 86, diff --git a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs index 60f3655255..3de796ebb0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_log.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_logging_msg_log() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x90a, - "incorrect sender id, expected 0x90a, is {}", - sender_id + "incorrect sender id, expected 0x90a, is {sender_id}" ); assert_eq!( msg.level, 6, @@ -54,11 +53,19 @@ fn test_auto_check_sbp_logging_msg_log() { msg.level ); assert_eq!( - msg.text.to_string(), - "Filtered all obs from 2314 at tow 83.539019", - "incorrect value for msg.text, expected string '{}', is '{}'", - "Filtered all obs from 2314 at tow 83.539019", - msg.text + msg.text.as_bytes(), + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgLog"), @@ -110,8 +117,7 @@ fn test_json2sbp_auto_check_sbp_logging_msg_log() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x90a, - "incorrect sender id, expected 0x90a, is {}", - sender_id + "incorrect sender id, expected 0x90a, is {sender_id}" ); assert_eq!( msg.level, 6, @@ -119,11 +125,19 @@ fn test_json2sbp_auto_check_sbp_logging_msg_log() { msg.level ); assert_eq!( - msg.text.to_string(), - "Filtered all obs from 2314 at tow 83.539019", - "incorrect value for msg.text, expected string '{}', is '{}'", - "Filtered all obs from 2314 at tow 83.539019", - msg.text + msg.text.as_bytes(), + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgLog"), @@ -184,8 +198,7 @@ fn test_sbp2json_auto_check_sbp_logging_msg_log() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x90a, - "incorrect sender id, expected 0x90a, is {}", - sender_id + "incorrect sender id, expected 0x90a, is {sender_id}" ); assert_eq!( msg.level, 6, @@ -193,11 +206,19 @@ fn test_sbp2json_auto_check_sbp_logging_msg_log() { msg.level ); assert_eq!( - msg.text.to_string(), - "Filtered all obs from 2314 at tow 83.539019", - "incorrect value for msg.text, expected string '{}', is '{}'", - "Filtered all obs from 2314 at tow 83.539019", - msg.text + msg.text.as_bytes(), + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 70, 105, 108, 116, 101, 114, 101, 100, 32, 97, 108, 108, 32, 111, 98, 115, + 32, 102, 114, 111, 109, 32, 50, 51, 49, 52, 32, 97, 116, 32, 116, 111, 119, + 32, 56, 51, 46, 53, 51, 57, 48, 49, 57 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgLog"), diff --git a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs index d505978cce..fb6505d282 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_logging_msg_print_dep.rs @@ -45,17 +45,22 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -88,17 +93,22 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -131,17 +141,22 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 0 (PRN 11) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 0 (PRN 11) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -174,17 +189,22 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -217,17 +237,22 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -260,17 +285,22 @@ fn test_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 1 (PRN 15) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 1 (PRN 15) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -322,17 +352,22 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -370,17 +405,22 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -418,17 +458,22 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 0 (PRN 11) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 0 (PRN 11) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -466,17 +511,22 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -514,17 +564,22 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -562,17 +617,22 @@ fn test_json2sbp_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 1 (PRN 15) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 1 (PRN 15) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -633,17 +693,22 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 15 found @ -2497 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 49, 53, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 45, 50, 52, 57, 55, 32, 72, 122, 44, + 32, 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -695,17 +760,22 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 31 found @ 4245 Hz, 21 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 51, 49, 32, + 102, 111, 117, 110, 100, 32, 64, 32, 52, 50, 52, 53, 32, 72, 122, 44, 32, + 50, 49, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -757,17 +827,22 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 0 (PRN 11) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 0 (PRN 11) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 48, 32, 40, 80, 82, 78, 32, 49, 49, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -819,17 +894,22 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 2 found @ 3996 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 50, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 51, 57, 57, 54, 32, 72, 122, 44, 32, 50, + 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -881,17 +961,22 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: acq: PRN 4 found @ -7492 Hz, 20 SNR -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 97, 99, 113, 58, 32, 80, 82, 78, 32, 52, 32, 102, + 111, 117, 110, 100, 32, 64, 32, 45, 55, 52, 57, 50, 32, 72, 122, 44, 32, + 50, 48, 32, 83, 78, 82, 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), @@ -943,17 +1028,22 @@ fn test_sbp2json_auto_check_sbp_logging_msg_print_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2222, - "incorrect sender id, expected 0x2222, is {}", - sender_id + "incorrect sender id, expected 0x2222, is {sender_id}" ); assert_eq!( - msg.text.to_string(), - "INFO: Disabling channel 1 (PRN 15) -", - "incorrect value for msg.text, expected string '{}', is '{}'", - "INFO: Disabling channel 1 (PRN 15) -", - msg.text + msg.text.as_bytes(), + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + "incorrect value for msg.text, expected string '{:?}', is '{:?}'", + &[ + 73, 78, 70, 79, 58, 32, 68, 105, 115, 97, 98, 108, 105, 110, 103, 32, 99, + 104, 97, 110, 110, 101, 108, 32, 49, 32, 40, 80, 82, 78, 32, 49, 53, 41, + 10 + ], + msg.text.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgPrintDep"), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_age_corrections.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_age_corrections.rs index d48c0bd675..bfb82453c2 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_age_corrections.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_age_corrections.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_navigation_msg_age_corrections() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.age, 30, @@ -104,8 +103,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_age_corrections() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.age, 30, @@ -172,8 +170,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_age_corrections() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.age, 30, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef.rs index cf5e6cdc46..e8e0fc3a3c 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -112,8 +111,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -180,8 +178,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -248,8 +245,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -316,8 +312,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -404,8 +399,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -478,8 +472,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -552,8 +545,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -626,8 +618,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -700,8 +691,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -796,8 +786,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -883,8 +872,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -970,8 +958,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1057,8 +1044,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1144,8 +1130,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef_dep_a.rs index 9133266793..ff17f228a2 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ecef_dep_a.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -112,8 +111,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -180,8 +178,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -248,8 +245,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -316,8 +312,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -384,8 +379,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -452,8 +446,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -520,8 +513,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -588,8 +580,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -656,8 +647,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -724,8 +714,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -812,8 +801,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -886,8 +874,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -960,8 +947,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1034,8 +1020,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1108,8 +1093,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1182,8 +1166,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1256,8 +1239,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1330,8 +1312,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1404,8 +1385,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1478,8 +1458,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1552,8 +1531,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1648,8 +1626,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1735,8 +1712,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1822,8 +1798,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1909,8 +1884,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1996,8 +1970,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2083,8 +2056,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2170,8 +2142,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2257,8 +2228,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2344,8 +2314,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2431,8 +2400,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2518,8 +2486,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned.rs index 18ee959ca3..222c565ec6 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32153, @@ -117,8 +116,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32622, @@ -190,8 +188,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32750, @@ -263,8 +260,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32559, @@ -336,8 +332,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32421, @@ -429,8 +424,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32153, @@ -508,8 +502,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32622, @@ -587,8 +580,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32750, @@ -666,8 +658,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32559, @@ -745,8 +736,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32421, @@ -846,8 +836,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32153, @@ -938,8 +927,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32622, @@ -1030,8 +1018,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32750, @@ -1122,8 +1109,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32559, @@ -1214,8 +1200,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.d, 32421, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned_dep_a.rs index 49d5631b79..d81a84389a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_baseline_ned_dep_a.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -113,8 +112,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -182,8 +180,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -251,8 +248,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -320,8 +316,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -389,8 +384,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -462,8 +456,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -535,8 +528,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24263, @@ -608,8 +600,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24266, @@ -681,8 +672,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -754,8 +744,7 @@ fn test_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -847,8 +836,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -922,8 +910,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -997,8 +984,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1072,8 +1058,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1147,8 +1132,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1222,8 +1206,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -1301,8 +1284,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -1380,8 +1362,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24263, @@ -1459,8 +1440,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24266, @@ -1538,8 +1518,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -1617,8 +1596,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -1718,8 +1696,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1806,8 +1783,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1894,8 +1870,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -1982,8 +1957,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -2070,8 +2044,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!(msg.d, 0, "incorrect value for d, expected 0, is {}", msg.d); assert_eq!( @@ -2158,8 +2131,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -2250,8 +2222,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -15325, @@ -2342,8 +2313,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24263, @@ -2434,8 +2404,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -24266, @@ -2526,8 +2495,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, @@ -2618,8 +2586,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_baseline_ned_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.d, -22880, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops.rs index e583353f5d..1a5c528437 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_dops() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -131,8 +130,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -226,8 +224,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops_dep_a.rs index 2fad058d46..b60841f638 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_dops_dep_a.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -105,8 +104,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -167,8 +165,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -229,8 +226,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 247, @@ -291,8 +287,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 65535, @@ -353,8 +348,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -415,8 +409,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -477,8 +470,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -539,8 +531,7 @@ fn test_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -622,8 +613,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -691,8 +681,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -760,8 +749,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -829,8 +817,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 247, @@ -898,8 +885,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 65535, @@ -967,8 +953,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1036,8 +1021,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1105,8 +1089,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1174,8 +1157,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1264,8 +1246,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -1345,8 +1326,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -1426,8 +1406,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.gdop, 180, @@ -1507,8 +1486,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 247, @@ -1588,8 +1566,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 65535, @@ -1669,8 +1646,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1750,8 +1726,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1831,8 +1806,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, @@ -1912,8 +1886,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_dops_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.gdop, 348, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time.rs index ce88929105..34ed1fb743 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -95,8 +94,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -147,8 +145,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -199,8 +196,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -251,8 +247,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -324,8 +319,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -383,8 +377,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -442,8 +435,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -501,8 +493,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -560,8 +551,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -640,8 +630,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -711,8 +700,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -782,8 +770,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -853,8 +840,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -924,8 +910,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_dep_a.rs index 9c3ca8ead7..4d5da66cd7 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_dep_a.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -95,8 +94,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -147,8 +145,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -199,8 +196,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -251,8 +247,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -303,8 +298,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -355,8 +349,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -407,8 +400,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -459,8 +451,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -511,8 +502,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -563,8 +553,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -636,8 +625,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -695,8 +683,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -754,8 +741,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -813,8 +799,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -872,8 +857,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -931,8 +915,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -990,8 +973,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1049,8 +1031,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1108,8 +1089,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1167,8 +1147,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1226,8 +1205,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1306,8 +1284,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1377,8 +1354,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1448,8 +1424,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1519,8 +1494,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1590,8 +1564,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1661,8 +1634,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1732,8 +1704,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1803,8 +1774,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1874,8 +1844,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1945,8 +1914,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2016,8 +1984,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_gnss.rs index 0089a10bd3..e8a60044f3 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_gps_time_gnss.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -95,8 +94,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -147,8 +145,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -199,8 +196,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -251,8 +247,7 @@ fn test_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -324,8 +319,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -383,8 +377,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -442,8 +435,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -501,8 +493,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -560,8 +551,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -640,8 +630,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -711,8 +700,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -782,8 +770,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -853,8 +840,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -924,8 +910,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_gps_time_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef.rs index b9979b4957..5c741b1f87 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -113,8 +112,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -182,8 +180,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -250,8 +247,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -338,8 +334,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -412,8 +407,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -486,8 +480,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -560,8 +553,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -656,8 +648,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -744,8 +735,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -832,8 +822,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -919,8 +908,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov.rs index 851add580e..9b0b653393 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(8.00000000000000000e+00), @@ -158,8 +157,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(8.00000000000000000e+00), @@ -280,8 +278,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(8.00000000000000000e+00), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov_gnss.rs index 41f67ca2aa..8f305f8717 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_cov_gnss.rs @@ -46,8 +46,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(9.69901494681835175e-03), @@ -159,8 +158,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(9.69901494681835175e-03), @@ -282,8 +280,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_x_x.almost_eq(9.69901494681835175e-03), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_dep_a.rs index 360c911dee..887ede7a2b 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecef_dep_a.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -112,8 +111,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -180,8 +178,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -248,8 +245,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -316,8 +312,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -384,8 +379,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -452,8 +446,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -520,8 +513,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -588,8 +580,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -656,8 +647,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -724,8 +714,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -812,8 +801,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -886,8 +874,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -960,8 +947,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1034,8 +1020,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1108,8 +1093,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1182,8 +1166,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1256,8 +1239,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1330,8 +1312,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1404,8 +1385,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1478,8 +1458,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1552,8 +1531,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1648,8 +1626,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1735,8 +1712,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1822,8 +1798,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1909,8 +1884,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -1996,8 +1970,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2083,8 +2056,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2170,8 +2142,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2257,8 +2228,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2344,8 +2314,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2431,8 +2400,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, @@ -2518,8 +2486,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecef_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.accuracy, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecefgnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecefgnss.rs index 40e75463ab..360fefaceb 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecefgnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_ecefgnss.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_pos_ecefgnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.accuracy, 182, @@ -132,8 +131,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_ecefgnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.accuracy, 182, @@ -228,8 +226,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_ecefgnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.accuracy, 182, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh.rs index 5aab5d6d95..c509bfe94e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -119,8 +118,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -193,8 +191,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -267,8 +264,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -341,8 +337,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -434,8 +429,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -513,8 +507,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -592,8 +585,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -671,8 +663,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -750,8 +741,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -852,8 +842,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -945,8 +934,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -1038,8 +1026,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -1131,8 +1118,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -1224,8 +1210,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88d3, - "incorrect sender id, expected 0x88d3, is {}", - sender_id + "incorrect sender id, expected 0x88d3, is {sender_id}" ); assert_eq!( msg.flags, 2, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov.rs index a5c9d84ba4..f3e7888fc5 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(2.00000000000000000e+00), @@ -158,8 +157,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(2.00000000000000000e+00), @@ -280,8 +278,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_cov() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(2.00000000000000000e+00), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov_gnss.rs index fd200edf1e..9164c5bbf2 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_cov_gnss.rs @@ -46,8 +46,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(3.28813754022121429e-02), @@ -159,8 +158,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(3.28813754022121429e-02), @@ -282,8 +280,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_cov_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert!( msg.cov_d_d.almost_eq(3.28813754022121429e-02), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_dep_a.rs index 2775bcd4fc..344b2ff066 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_dep_a.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -118,8 +117,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -192,8 +190,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -266,8 +263,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -340,8 +336,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -413,8 +408,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -487,8 +481,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -561,8 +554,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -634,8 +626,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -708,8 +699,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -782,8 +772,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -875,8 +864,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -954,8 +942,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -1033,8 +1020,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1112,8 +1098,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -1191,8 +1176,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1270,8 +1254,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1349,8 +1332,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1428,8 +1410,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1507,8 +1488,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1586,8 +1566,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1665,8 +1644,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1767,8 +1745,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -1859,8 +1836,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -1952,8 +1928,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2045,8 +2020,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -2138,8 +2112,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2230,8 +2203,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2323,8 +2295,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2416,8 +2387,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2508,8 +2478,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2601,8 +2570,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -2694,8 +2662,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_gnss.rs index 27408e3268..35685dff9a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pos_llh_gnss.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_pos_llh_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 4, @@ -138,8 +137,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pos_llh_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 4, @@ -240,8 +238,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pos_llh_gnss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 4, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pose_relative.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pose_relative.rs index db2779acfa..dbee5c8de1 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pose_relative.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_pose_relative.rs @@ -46,8 +46,7 @@ fn test_auto_check_sbp_navigation_msg_pose_relative() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_c_x_x.almost_eq(2.00000000000000000e+00), @@ -219,8 +218,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_pose_relative() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_c_x_x.almost_eq(2.00000000000000000e+00), @@ -402,8 +400,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_pose_relative() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert!( msg.cov_c_x_x.almost_eq(2.00000000000000000e+00), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_protection_level.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_protection_level.rs index 44f792a58f..527091203e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_protection_level.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_protection_level.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_protection_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -132,8 +131,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_protection_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -228,8 +226,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_protection_level() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x1000, - "incorrect sender id, expected 0x1000, is {}", - sender_id + "incorrect sender id, expected 0x1000, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_reference_frame_param.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_reference_frame_param.rs index 5a1e00914ea6b6dc36e2f7396009aa17c527ea6e..c5e5a0899c9d3197af119ac2ba38f53769fa827e 100644 GIT binary patch delta 985 zcmeC0%{XNRd5%#>QC$&H$xlP}n@ZvMb=n3F59I6kSeB(+#WbMi(` zF($R>$&MVNlO4EOCLd+Cp1i?SX7YYc4ltjWMG_>(7z> v0JT+evR$AUy3IuBm1Zmf+U>d7T*``jG#ECkn{VeF4Tj0)QqLw=1cAdpwni3o(;^h2r-aqOG_OEOLH9s zLqh`{1ry837nxPSW~)tBFcF+=t1qIA%?>QOm|}G%8wv?ezQE7Vg|K3?p~)v^boa-y zYEAyY%nh|?p9R<+?0$hN1sTq0DLgq(1ljP(iej#t^F$wGSn!+G2xxeLB#r=rNH^MI z29Ukf1`NZx*wiOGu<$`$Yv6>(wNRxX*E%W)Pktba?ApzaPKL~z&nRx<9*tv^^g6ua TIGlGhdWUiJ>M~F6NS_4&K0~RW delta 1353 zcmex!lX1}n#tk<(Cm)xP;4DtfOGzz?&rF&8kvDAe`CyL8w!yFDOY-B3ONuh{(ls=7 z6qJ$^^9&e}fYRiR2Hpy_>N*OU#R}@xwdzXP6iwn$+FWS(i5b%{LnN~plqM$%U^5I& z(T7N-&5D8;rlpo-pgAp3Ky7lZsH!5G^Dq?ZOx|dvI9X8Kb@F>_uFY$#Z=yRiCm-3F z3}A<TE&dq4Z# z4=?pAtNM8D_Udr({7~@Xz{t?}Zs0PThQaW_xyzS=VGs=sI%hxJPIw_zQOTW#olQq; zJ-%_*eqkgmxW+s_7;NI{Eo*kW@j(8B*<(%=j7KUd4bc{WQ?H&fI#9zs*8}@3QARJ3^%d94ZD8~;RqvO3V(S*;4;8D~?`7s}5R7hU z9sLS3t~gvtG=M2!iFBK}Htciks*o8Az`H&3a$}J%JSRwx*h$-}i(G-(sB{?-V62uutL`C&G)zDOUjud9I;R?5q)u?}V` z^`LVI5tEf`gs~(KcRCHykDMFGa*^Ol%YT1b>2@Nd7uHG2hOy>EXBp7vAY2Ls@a>ti zbV)Q~pb$L>7ebAg7(Oo7(|~~v4*emN3#pZ1353`>I=PKufcDITxO1H}t{LX1Z4io9 z;o++%X`f1&F71y}Vj!+e-Dmx3z&s(^i{F3=NdVO69K^i8YKimHlXMMLkRWUSB($<0Y}wi-%Qqdy8l(aang`hgy2`a~tdIoP zdvQX#IC&$5(Vq`n5YfD;3vbqiSAp|Vura)f1V`tLI%ns24&Lm1yBoalJkR_6zUO>D z*QoqA>RsJFm~S<~=y?Nl|JgDmM*ZW7csMo!S8tjQTcb=kR-^a*l20Zm z{LvECm=#4am$aeE)YxUcT^U>DoMX&Lh-QL!B@!r+kla;gg zN@4<8(GHSieZoUs!{UBfrVf>q$E(4K>P6C+6&DOVQ!qWZDV#9&I+`dM(0a3#bzYI} zn*DA;JFbuhBdT#VW-H@%vgTuG19RS!QdU)_%48-{84lE1oi+KvOk2eLhrXiGd1d0H!@i9kI<$+RgXhCr|t=kMK;r`8*1F1c8lSpQ}O ze|wRS>jL`Ye%$lqniN-+=qi4Hb9NiTbo#ZVNT@1#tXdFw(?>8jJ0PkP=}A02_pu2;AgmgGN diff --git a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_uart_state.rs b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_uart_state.rs index 9e7157f2d9..e9f233eff7 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_uart_state.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_uart_state.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_piksi_msg_uart_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -165,8 +164,7 @@ fn test_auto_check_sbp_piksi_msg_uart_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -304,8 +302,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_uart_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -429,8 +426,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_uart_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -577,8 +573,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_uart_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -716,8 +711,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_uart_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_uart_state_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_uart_state_dep_a.rs index 4137ac2ab5..573d03e5b4 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_uart_state_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_uart_state_dep_a.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -165,8 +164,7 @@ fn test_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -285,8 +283,7 @@ fn test_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -405,8 +402,7 @@ fn test_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -525,8 +521,7 @@ fn test_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -645,8 +640,7 @@ fn test_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -784,8 +778,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -909,8 +902,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -1034,8 +1026,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -1159,8 +1150,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -1284,8 +1274,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -1409,8 +1398,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -1557,8 +1545,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -1696,8 +1683,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -1835,8 +1821,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -1974,8 +1959,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -2113,8 +2097,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, @@ -2252,8 +2235,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_uart_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.latency.avg, -1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_sbas_msg_sbas_raw.rs b/rust/sbp/tests/integration/auto_check_sbp_sbas_msg_sbas_raw.rs index 0923a9fc30..c228399a45 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_sbas_msg_sbas_raw.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_sbas_msg_sbas_raw.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_sbas_msg_sbas_raw() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc81c, - "incorrect sender id, expected 0xc81c, is {}", - sender_id + "incorrect sender id, expected 0xc81c, is {sender_id}" ); assert_eq!( msg.data[0], 23, @@ -253,8 +252,7 @@ fn test_json2sbp_auto_check_sbp_sbas_msg_sbas_raw() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc81c, - "incorrect sender id, expected 0xc81c, is {}", - sender_id + "incorrect sender id, expected 0xc81c, is {sender_id}" ); assert_eq!( msg.data[0], 23, @@ -470,8 +468,7 @@ fn test_sbp2json_auto_check_sbp_sbas_msg_sbas_raw() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xc81c, - "incorrect sender id, expected 0xc81c, is {}", - sender_id + "incorrect sender id, expected 0xc81c, is {sender_id}" ); assert_eq!( msg.data[0], 23, diff --git a/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_done.rs b/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_done.rs index 0ff5a417e6..2d7270c394 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_done.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_done.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_settings_msg_settings_read_by_index_done() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); } _ => panic!("Invalid message type! Expected a MsgSettingsReadByIndexDone"), @@ -94,8 +93,7 @@ fn test_json2sbp_auto_check_sbp_settings_msg_settings_read_by_index_done() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); } _ => panic!("Invalid message type! Expected a MsgSettingsReadByIndexDone"), @@ -152,8 +150,7 @@ fn test_sbp2json_auto_check_sbp_settings_msg_settings_read_by_index_done() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); } _ => panic!("Invalid message type! Expected a MsgSettingsReadByIndexDone"), diff --git a/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_resp.rs b/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_resp.rs index f41be53ea731021b90d9a62942d0c602e24cab62..3f635a6e69d2814230dd34a7ecd20e989c43bd53 100644 GIT binary patch delta 3526 zcmX@n#niKxX+snTcX4W7N@`JjW=gHnIfSxessF7T&{*#YekwrVc}4Ga+DlFapLQ zC=Gx;W?%^SM}4Lvn}Vq^39(D6f%yEhfAYGbwVOXkyCO9KlkX`8BH8vBuJ9*@UOC#2K!eYm9nXv4-c6ESqYKj5gn}3d823Az3zo{PWkz z1Dk(_X1O#Ou*hmvF@o`{W^69Q|dgeZ7!s!Eb-g!JSDPWH`#Vjhf}75H~EW4Q6YGnyNflu8qeO5)Q>QZgBG^HWk8f}H{w zQu9i4t$++2KVMfz94;eHBg{Q4tQbyNFOA13#YqM6xv9m)iRr2FxrxQu3}&XL#->C# z1-C|+Q(PD)M|G~<{GR^}6Na1ahoQMi1}S)w5=&EnF_+3`D panic!("Invalid message type! Expected a MsgDgnssStatus"), @@ -118,8 +117,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_dgnss_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -137,11 +135,11 @@ fn test_json2sbp_auto_check_sbp_system_msg_dgnss_status() { msg.num_signals ); assert_eq!( - msg.source.to_string(), - "Skylark", - "incorrect value for msg.source, expected string '{}', is '{}'", - "Skylark", - msg.source + msg.source.as_bytes(), + &[83, 107, 121, 108, 97, 114, 107], + "incorrect value for msg.source, expected string '{:?}', is '{:?}'", + &[83, 107, 121, 108, 97, 114, 107], + msg.source.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgDgnssStatus"), @@ -200,8 +198,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_dgnss_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -219,11 +216,11 @@ fn test_sbp2json_auto_check_sbp_system_msg_dgnss_status() { msg.num_signals ); assert_eq!( - msg.source.to_string(), - "Skylark", - "incorrect value for msg.source, expected string '{}', is '{}'", - "Skylark", - msg.source + msg.source.as_bytes(), + &[83, 107, 121, 108, 97, 114, 107], + "incorrect value for msg.source, expected string '{:?}', is '{:?}'", + &[83, 107, 121, 108, 97, 114, 107], + msg.source.as_bytes() ); } _ => panic!("Invalid message type! Expected a MsgDgnssStatus"), diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_group_meta.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_group_meta.rs index 9b39f7ba0d..7df2cf5334 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_group_meta.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_group_meta.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xEEEE, - "incorrect sender id, expected 0xEEEE, is {}", - sender_id + "incorrect sender id, expected 0xEEEE, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -106,8 +105,7 @@ fn test_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -244,8 +242,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xEEEE, - "incorrect sender id, expected 0xEEEE, is {}", - sender_id + "incorrect sender id, expected 0xEEEE, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -313,8 +310,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -458,8 +454,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xEEEE, - "incorrect sender id, expected 0xEEEE, is {}", - sender_id + "incorrect sender id, expected 0xEEEE, is {sender_id}" ); assert_eq!( msg.flags, 2, @@ -540,8 +535,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_group_meta() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_heartbeat.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_heartbeat.rs index c1e378d1fe..1f35854e77 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_heartbeat.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_heartbeat.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 12800, @@ -76,8 +75,7 @@ fn test_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -134,8 +132,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 12800, @@ -178,8 +175,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -241,8 +237,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert_eq!( msg.flags, 12800, @@ -295,8 +290,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_heartbeat() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_status.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_status.rs index e175b3cb91..f0f15391d1 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_status.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_status.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_system_msg_ins_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 536870921, @@ -99,8 +98,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_ins_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 536870921, @@ -162,8 +160,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_ins_status() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.flags, 536870921, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_updates.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_updates.rs index f049c246fd..cb623785e2 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_updates.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_ins_updates.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_system_msg_ins_updates() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.gnsspos, 0, @@ -131,8 +130,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_ins_updates() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.gnsspos, 0, @@ -226,8 +224,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_ins_updates() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x315, - "incorrect sender id, expected 0x315, is {}", - sender_id + "incorrect sender id, expected 0x315, is {sender_id}" ); assert_eq!( msg.gnsspos, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_sensor_aid_event.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_sensor_aid_event.rs index 3f19870dd9..7bdf455e5b 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_sensor_aid_event.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_sensor_aid_event.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_system_msg_sensor_aid_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -136,8 +135,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_sensor_aid_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.flags, 0, @@ -236,8 +234,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_sensor_aid_event() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.flags, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_startup.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_startup.rs index 4b1daf742c..41eae1b2fe 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_startup.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_startup.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -86,8 +85,7 @@ fn test_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -154,8 +152,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -208,8 +205,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -281,8 +277,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.cause, 0, @@ -345,8 +340,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_startup() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert_eq!( msg.cause, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_status_journal.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_status_journal.rs index 26684934b8..5060b9ab3b 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_status_journal.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_status_journal.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -157,8 +156,7 @@ fn test_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -250,8 +248,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -369,8 +366,7 @@ fn test_json2sbp_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -470,8 +466,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, @@ -602,8 +597,7 @@ fn test_sbp2json_auto_check_sbp_system_msg_status_journal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x88D3, - "incorrect sender id, expected 0x88D3, is {}", - sender_id + "incorrect sender id, expected 0x88D3, is {sender_id}" ); assert_eq!( msg.journal[0].report.component, 6, diff --git a/rust/sbp/tests/integration/auto_check_sbp_telemetry_msg_tel_sv.rs b/rust/sbp/tests/integration/auto_check_sbp_telemetry_msg_tel_sv.rs index 3d861c02a7..54c2156683 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_telemetry_msg_tel_sv.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_telemetry_msg_tel_sv.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_telemetry_msg_tel_sv() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2694, - "incorrect sender id, expected 0x2694, is {}", - sender_id + "incorrect sender id, expected 0x2694, is {sender_id}" ); assert_eq!( msg.n_obs, 16, @@ -167,8 +166,7 @@ fn test_json2sbp_auto_check_sbp_telemetry_msg_tel_sv() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2694, - "incorrect sender id, expected 0x2694, is {}", - sender_id + "incorrect sender id, expected 0x2694, is {sender_id}" ); assert_eq!( msg.n_obs, 16, @@ -298,8 +296,7 @@ fn test_sbp2json_auto_check_sbp_telemetry_msg_tel_sv() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x2694, - "incorrect sender id, expected 0x2694, is {}", - sender_id + "incorrect sender id, expected 0x2694, is {sender_id}" ); assert_eq!( msg.n_obs, 16, diff --git a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_measurement_state.rs b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_measurement_state.rs index 8afb411dc0..185c3ff8d7 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_measurement_state.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_measurement_state.rs @@ -53,8 +53,7 @@ fn test_auto_check_sbp_tracking_msg_measurement_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x79CF, - "incorrect sender id, expected 0x79CF, is {}", - sender_id + "incorrect sender id, expected 0x79CF, is {sender_id}" ); assert_eq!( msg.states[0].cn0, 162, @@ -1291,8 +1290,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_measurement_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x79CF, - "incorrect sender id, expected 0x79CF, is {}", - sender_id + "incorrect sender id, expected 0x79CF, is {sender_id}" ); assert_eq!( msg.states[0].cn0, 162, @@ -2546,8 +2544,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_measurement_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x79CF, - "incorrect sender id, expected 0x79CF, is {}", - sender_id + "incorrect sender id, expected 0x79CF, is {sender_id}" ); assert_eq!( msg.states[0].cn0, 162, diff --git a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state.rs b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state.rs index f446a8704d..f5c17111ff 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state.rs @@ -47,8 +47,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.92478218078613281e+01), @@ -354,8 +353,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89941177368164062e+01), @@ -661,8 +659,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89545707702636719e+01), @@ -968,8 +965,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.93695983886718750e+01), @@ -1275,8 +1271,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.97035179138183594e+01), @@ -1599,8 +1594,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.92478218078613281e+01), @@ -1909,8 +1903,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89941177368164062e+01), @@ -2219,8 +2212,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89545707702636719e+01), @@ -2529,8 +2521,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.93695983886718750e+01), @@ -2839,8 +2830,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.97035179138183594e+01), @@ -3174,8 +3164,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.92478218078613281e+01), @@ -3500,8 +3489,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89941177368164062e+01), @@ -3826,8 +3814,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.89545707702636719e+01), @@ -4152,8 +4139,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.93695983886718750e+01), @@ -4478,8 +4464,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xd7f6, - "incorrect sender id, expected 0xd7f6, is {}", - sender_id + "incorrect sender id, expected 0xd7f6, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.97035179138183594e+01), diff --git a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state_detailed_dep.rs b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state_detailed_dep.rs index c0915e9695..e2bc43330e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state_detailed_dep.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_tracking_msg_tracking_state_detailed_dep.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 169, @@ -200,8 +199,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 14, @@ -355,8 +353,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 8, @@ -510,8 +507,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 125, @@ -665,8 +661,7 @@ fn test_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 64, @@ -839,8 +834,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 169, @@ -999,8 +993,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 14, @@ -1159,8 +1152,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 8, @@ -1319,8 +1311,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 125, @@ -1479,8 +1470,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 64, @@ -1662,8 +1652,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 169, @@ -1836,8 +1825,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 14, @@ -2010,8 +1998,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 8, @@ -2184,8 +2171,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 125, @@ -2358,8 +2344,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msg_tracking_state_detailed_dep() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x673b, - "incorrect sender id, expected 0x673b, is {}", - sender_id + "incorrect sender id, expected 0x673b, is {sender_id}" ); assert_eq!( msg.l.f, 64, diff --git a/rust/sbp/tests/integration/auto_check_sbp_tracking_msgtracking_state_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_tracking_msgtracking_state_dep_a.rs index f5a42c0030..bff321b547 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_tracking_msgtracking_state_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_tracking_msgtracking_state_dep_a.rs @@ -46,8 +46,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.12309074401855469e+01), @@ -246,8 +245,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.10141220092773438e+01), @@ -446,8 +444,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.17686891555786133e+01), @@ -646,8 +643,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(6.21398582458496094e+01), @@ -842,8 +838,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.67645034790039062e+01), @@ -1038,8 +1033,7 @@ fn test_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(2.73942298889160156e+01), @@ -1252,8 +1246,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.12309074401855469e+01), @@ -1456,8 +1449,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.10141220092773438e+01), @@ -1660,8 +1652,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.17686891555786133e+01), @@ -1864,8 +1855,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(6.21398582458496094e+01), @@ -2064,8 +2054,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.67645034790039062e+01), @@ -2264,8 +2253,7 @@ fn test_json2sbp_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(2.73942298889160156e+01), @@ -2488,8 +2476,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.12309074401855469e+01), @@ -2707,8 +2694,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.10141220092773438e+01), @@ -2926,8 +2912,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(1.17686891555786133e+01), @@ -3145,8 +3130,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(6.21398582458496094e+01), @@ -3360,8 +3344,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(3.67645034790039062e+01), @@ -3575,8 +3558,7 @@ fn test_sbp2json_auto_check_sbp_tracking_msgtracking_state_dep_a() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x4c3, - "incorrect sender id, expected 0x4c3, is {}", - sender_id + "incorrect sender id, expected 0x4c3, is {sender_id}" ); assert!( msg.states[0].cn0.almost_eq(2.73942298889160156e+01), diff --git a/rust/sbp/tests/integration/auto_check_sbp_vehicle_msg_odometry.rs b/rust/sbp/tests/integration/auto_check_sbp_vehicle_msg_odometry.rs index f468197bf3..eba6c31a74 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_vehicle_msg_odometry.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_vehicle_msg_odometry.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_vehicle_msg_odometry() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -109,8 +108,7 @@ fn test_json2sbp_auto_check_sbp_vehicle_msg_odometry() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 1, @@ -182,8 +180,7 @@ fn test_sbp2json_auto_check_sbp_vehicle_msg_odometry() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x42, - "incorrect sender id, expected 0x42, is {}", - sender_id + "incorrect sender id, expected 0x42, is {sender_id}" ); assert_eq!( msg.flags, 1, diff --git a/rust/sbp2json/tests/common/mod.rs b/rust/sbp2json/tests/common/mod.rs index 208f68edd4..92ff29cf27 100644 --- a/rust/sbp2json/tests/common/mod.rs +++ b/rust/sbp2json/tests/common/mod.rs @@ -83,7 +83,7 @@ impl Drop for DeleteTestOutput { } for file in &self.files { if file.as_path().exists() { - let _ = fs::remove_file(file).map_err(|e| format!("could not delete file: {}", e)); + let _ = fs::remove_file(file).map_err(|e| format!("could not delete file: {e}")); } } } @@ -134,10 +134,10 @@ pub fn test_round_trip( let root = find_project_root().unwrap(); let root = root.as_path(); - let input_path = root.join(format!("test_data/{}", input_filename)); - let first_transform_output = format!("test_data/test_{}.output.first_transform", test_name); - let second_transform_output = format!("test_data/test_{}.output.second_transform", test_name); - let third_transform_output = format!("test_data/test_{}.output.third_transform", test_name); + let input_path = root.join(format!("test_data/{input_filename}")); + let first_transform_output = format!("test_data/test_{test_name}.output.first_transform"); + let second_transform_output = format!("test_data/test_{test_name}.output.second_transform"); + let third_transform_output = format!("test_data/test_{test_name}.output.third_transform"); let output_path = root.join(&first_transform_output); { @@ -253,7 +253,7 @@ fn json_file_equals(a: File, b: File) -> bool { .find(|(_, res)| res.is_err()); if let Some((line, Err(err))) = wrong { - eprintln!("value mismatch at line {}\n{}", line, err); + eprintln!("value mismatch at line {line}\n{err}"); false } else { true