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 5a1e00914e..c5e5a0899c 100644 Binary files a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_reference_frame_param.rs and b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_reference_frame_param.rs differ diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_leap_second.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_leap_second.rs index 24cef57d80..929d89ac68 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_leap_second.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_leap_second.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_navigation_msg_utc_leap_second() { 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.count_after, 9, @@ -141,8 +140,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_utc_leap_second() { 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.count_after, 9, @@ -246,8 +244,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_utc_leap_second() { 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.count_after, 9, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_time.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_time.rs index 61dfa99f6c..9a80b17153 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_time.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_time.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_utc_time() { 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.day, 9, @@ -142,8 +141,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_utc_time() { 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.day, 9, @@ -248,8 +246,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_utc_time() { 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.day, 9, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_time_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_time_gnss.rs index ccf70c1366..3a7d375a2f 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_time_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_utc_time_gnss.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_utc_time_gnss() { 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.day, 9, @@ -142,8 +141,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_utc_time_gnss() { 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.day, 9, @@ -248,8 +246,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_utc_time_gnss() { 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.day, 9, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_body.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_body.rs index a58055b480..c8365ab24e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_body.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_body.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_vel_body() { 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(0.00000000000000000e+00), @@ -145,8 +144,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_body() { 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(0.00000000000000000e+00), @@ -254,8 +252,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_body() { 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(0.00000000000000000e+00), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_cog.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_cog.rs index b7121c6e91..f124600684 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_cog.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_cog.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_vel_cog() { 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.cog, 1000, @@ -117,8 +116,7 @@ fn test_auto_check_sbp_navigation_msg_vel_cog() { 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.cog, 123, @@ -190,8 +188,7 @@ fn test_auto_check_sbp_navigation_msg_vel_cog() { 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.cog, 0, @@ -283,8 +280,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_cog() { 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.cog, 1000, @@ -362,8 +358,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_cog() { 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.cog, 123, @@ -441,8 +436,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_cog() { 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.cog, 0, @@ -542,8 +536,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_cog() { 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.cog, 1000, @@ -634,8 +627,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_cog() { 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.cog, 123, @@ -726,8 +718,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_cog() { 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.cog, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef.rs index d187bebe21..fdf5e0ab57 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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_vel_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_vel_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, @@ -244,8 +241,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, @@ -312,8 +308,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, @@ -400,8 +395,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -474,8 +468,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -548,8 +541,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -618,8 +610,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -692,8 +683,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -788,8 +778,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -875,8 +864,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -962,8 +950,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -1045,8 +1032,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -1132,8 +1118,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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_vel_ecef_cov.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_cov.rs index cf6a8e5185..7ab369c9b1 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_cov.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_cov.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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(2.00000000000000000e+00), @@ -145,8 +144,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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(2.00000000000000000e+00), @@ -254,8 +252,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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(2.00000000000000000e+00), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_cov_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_cov_gnss.rs index fcff23f687..720cc627b0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_cov_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_cov_gnss.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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(2.45476840063929558e-03), @@ -150,8 +149,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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(2.45476840063929558e-03), @@ -264,8 +262,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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(2.45476840063929558e-03), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_dep_a.rs index ac6d7d08f7..7eee9cc8f4 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_dep_a.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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_vel_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_vel_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_vel_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_vel_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_vel_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_vel_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, @@ -516,8 +509,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, @@ -576,8 +568,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, @@ -644,8 +635,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, @@ -708,8 +698,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, @@ -796,8 +785,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -870,8 +858,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -944,8 +931,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -1018,8 +1004,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -1092,8 +1077,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -1166,8 +1150,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -1240,8 +1223,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -1310,8 +1292,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -1376,8 +1357,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -1450,8 +1430,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -1520,8 +1499,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, @@ -1616,8 +1594,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -1703,8 +1680,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -1790,8 +1766,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -1877,8 +1852,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -1964,8 +1938,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -2051,8 +2024,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -2138,8 +2110,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -2221,8 +2192,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -2300,8 +2270,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -2387,8 +2356,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, @@ -2470,8 +2438,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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_vel_ecef_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_gnss.rs index 871326cd5f..612bd5f45e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ecef_gnss.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_vel_ecef_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.accuracy, 89, @@ -124,8 +123,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_ecef_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.accuracy, 89, @@ -212,8 +210,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_ecef_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.accuracy, 89, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned.rs index ffa046f398..a8fb1ad614 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, -13, @@ -113,8 +112,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, -24, @@ -186,8 +184,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, -12, @@ -255,8 +252,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, -24, @@ -320,8 +316,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, -21, @@ -405,8 +400,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, -13, @@ -480,8 +474,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, -24, @@ -559,8 +552,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, -12, @@ -634,8 +626,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, -24, @@ -705,8 +696,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, -21, @@ -798,8 +788,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, -13, @@ -886,8 +875,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, -24, @@ -978,8 +966,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, -12, @@ -1066,8 +1053,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, -24, @@ -1150,8 +1136,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, -21, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_cov_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_cov_gnss.rs index 41cff1925e..a2ef32176f 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_cov_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_cov_gnss.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_vel_ned_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(7.88295920938253403e-03), @@ -154,8 +153,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_ned_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(7.88295920938253403e-03), @@ -272,8 +270,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_ned_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(7.88295920938253403e-03), diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_dep_a.rs index 7b76947bb6..299dcd99f3 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_dep_a.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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_vel_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_vel_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_vel_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_vel_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_vel_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, 25, @@ -462,8 +456,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, -24, @@ -531,8 +524,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, -9, @@ -604,8 +596,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, -34, @@ -673,8 +664,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, 7, "incorrect value for d, expected 7, is {}", msg.d); assert_eq!( @@ -742,8 +732,7 @@ fn test_auto_check_sbp_navigation_msg_vel_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, -108, @@ -835,8 +824,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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!( @@ -910,8 +898,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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!( @@ -985,8 +972,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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!( @@ -1060,8 +1046,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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!( @@ -1135,8 +1120,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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!( @@ -1210,8 +1194,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, 25, @@ -1289,8 +1272,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, -24, @@ -1364,8 +1346,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, -9, @@ -1443,8 +1424,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, -34, @@ -1518,8 +1498,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, 7, "incorrect value for d, expected 7, is {}", msg.d); assert_eq!( @@ -1593,8 +1572,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_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, -108, @@ -1694,8 +1672,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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!( @@ -1782,8 +1759,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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!( @@ -1870,8 +1846,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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!( @@ -1958,8 +1933,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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!( @@ -2046,8 +2020,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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!( @@ -2134,8 +2107,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, 25, @@ -2226,8 +2198,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, -24, @@ -2314,8 +2285,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, -9, @@ -2406,8 +2376,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, -34, @@ -2494,8 +2463,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, 7, "incorrect value for d, expected 7, is {}", msg.d); assert_eq!( @@ -2582,8 +2550,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_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, -108, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_gnss.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_gnss.rs index c77c7bb563..ca954d8b2d 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_gnss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_ned_gnss.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_navigation_msg_vel_ned_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.d, -10, @@ -133,8 +132,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_ned_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.d, -10, @@ -230,8 +228,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_ned_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.d, -10, diff --git a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_nedcov.rs b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_nedcov.rs index 5db3b4b55f..bab5f47c35 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_nedcov.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_navigation_msg_vel_nedcov.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_navigation_msg_vel_nedcov() { 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(1.00000000000000000e+00), @@ -146,8 +145,7 @@ fn test_json2sbp_auto_check_sbp_navigation_msg_vel_nedcov() { 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(1.00000000000000000e+00), @@ -256,8 +254,7 @@ fn test_sbp2json_auto_check_sbp_navigation_msg_vel_nedcov() { 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(1.00000000000000000e+00), diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_base_pos_ecef.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_base_pos_ecef.rs index ce43c0b16f..034bb629d6 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_base_pos_ecef.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_base_pos_ecef.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_observation_msg_base_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0, - "incorrect sender id, expected 0, is {}", - sender_id + "incorrect sender id, expected 0, is {sender_id}" ); assert!( msg.x.almost_eq(-2.72657591889999993e+06), @@ -112,8 +111,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_base_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0, - "incorrect sender id, expected 0, is {}", - sender_id + "incorrect sender id, expected 0, is {sender_id}" ); assert!( msg.x.almost_eq(-2.72657591889999993e+06), @@ -188,8 +186,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_base_pos_ecef() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0, - "incorrect sender id, expected 0, is {}", - sender_id + "incorrect sender id, expected 0, is {sender_id}" ); assert!( msg.x.almost_eq(-2.72657591889999993e+06), diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_bds.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_bds.rs index 485667da49..66b97056ea 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_bds.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_bds.rs @@ -50,8 +50,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_bds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf080, - "incorrect sender id, expected 0xf080, is {}", - sender_id + "incorrect sender id, expected 0xf080, is {sender_id}" ); assert!( msg.af0.almost_eq(-8.91132280230522156e-04), @@ -263,8 +262,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_bds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf080, - "incorrect sender id, expected 0xf080, is {}", - sender_id + "incorrect sender id, expected 0xf080, is {sender_id}" ); assert!( msg.af0.almost_eq(-8.91132280230522156e-04), @@ -490,8 +488,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_bds() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf080, - "incorrect sender id, expected 0xf080, is {}", - sender_id + "incorrect sender id, expected 0xf080, is {sender_id}" ); assert!( msg.af0.almost_eq(-8.91132280230522156e-04), diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_dep_b.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_dep_b.rs index 485c9447fd..3dfdfb5b55 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_dep_b.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_dep_b.rs @@ -51,8 +51,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(-1.03502534329891205e-05), @@ -226,8 +225,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(7.38454982638359070e-05), @@ -401,8 +399,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(-7.24941492080688477e-06), @@ -576,8 +573,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(7.38454982638359070e-05), @@ -751,8 +747,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(-9.92552377283573151e-05), @@ -926,8 +921,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(3.19611746817827225e-04), @@ -1114,8 +1108,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(-1.03502534329891205e-05), @@ -1288,8 +1281,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(7.38454982638359070e-05), @@ -1462,8 +1454,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(-7.24941492080688477e-06), @@ -1636,8 +1627,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(7.38454982638359070e-05), @@ -1810,8 +1800,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(-9.92552377283573151e-05), @@ -1984,8 +1973,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(3.19611746817827225e-04), @@ -2187,8 +2175,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(-1.03502534329891205e-05), @@ -2381,8 +2368,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(7.38454982638359070e-05), @@ -2575,8 +2561,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(-7.24941492080688477e-06), @@ -2769,8 +2754,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(7.38454982638359070e-05), @@ -2963,8 +2947,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(-9.92552377283573151e-05), @@ -3157,8 +3140,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_dep_b() { 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.af0.almost_eq(3.19611746817827225e-04), diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_gal.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_gal.rs index 67fa8f2f37..476cf919dd 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_gal.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_gal.rs @@ -50,8 +50,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_gal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf080, - "incorrect sender id, expected 0xf080, is {}", - sender_id + "incorrect sender id, expected 0xf080, is {sender_id}" ); assert!( msg.af0.almost_eq(-1.70888961292803254e-05), @@ -268,8 +267,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_gal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf080, - "incorrect sender id, expected 0xf080, is {}", - sender_id + "incorrect sender id, expected 0xf080, is {sender_id}" ); assert!( msg.af0.almost_eq(-1.70888961292803254e-05), @@ -500,8 +498,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_gal() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf080, - "incorrect sender id, expected 0xf080, is {}", - sender_id + "incorrect sender id, expected 0xf080, is {sender_id}" ); assert!( msg.af0.almost_eq(-1.70888961292803254e-05), diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_glo.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_glo.rs index 7ec810d5c7..8a26fb4415 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_glo.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_glo.rs @@ -47,8 +47,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_glo() { 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!( msg.acc[0].almost_eq(9.31322574615478516e-07), @@ -210,8 +209,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_glo() { 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!( msg.acc[0].almost_eq(9.31322574615478516e-07), @@ -384,8 +382,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_glo() { 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!( msg.acc[0].almost_eq(9.31322574615478516e-07), diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_gps.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_gps.rs index c7103e408a..8122685f91 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_gps.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_gps.rs @@ -50,8 +50,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_gps() { 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!( msg.af0.almost_eq(-6.31501898169517517e-04), @@ -258,8 +257,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_gps() { 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!( msg.af0.almost_eq(-6.31501898169517517e-04), @@ -480,8 +478,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_gps() { 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!( msg.af0.almost_eq(-6.31501898169517517e-04), diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_qzss.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_qzss.rs index 36efb94875..03e5738491 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_qzss.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_ephemeris_qzss.rs @@ -50,8 +50,7 @@ fn test_auto_check_sbp_observation_msg_ephemeris_qzss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf080, - "incorrect sender id, expected 0xf080, is {}", - sender_id + "incorrect sender id, expected 0xf080, is {sender_id}" ); assert!( msg.af0.almost_eq(-3.69084067642688751e-04), @@ -258,8 +257,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_ephemeris_qzss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf080, - "incorrect sender id, expected 0xf080, is {}", - sender_id + "incorrect sender id, expected 0xf080, is {sender_id}" ); assert!( msg.af0.almost_eq(-3.69084067642688751e-04), @@ -480,8 +478,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_ephemeris_qzss() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf080, - "incorrect sender id, expected 0xf080, is {}", - sender_id + "incorrect sender id, expected 0xf080, is {sender_id}" ); assert!( msg.af0.almost_eq(-3.69084067642688751e-04), diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_glo_biases.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_glo_biases.rs index b747569e61..ab5f5e6a2e 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_glo_biases.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_glo_biases.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_observation_msg_glo_biases() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0, - "incorrect sender id, expected 0, is {}", - sender_id + "incorrect sender id, expected 0, is {sender_id}" ); assert_eq!( msg.l1ca_bias, 0, @@ -121,8 +120,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_glo_biases() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0, - "incorrect sender id, expected 0, is {}", - sender_id + "incorrect sender id, expected 0, is {sender_id}" ); assert_eq!( msg.l1ca_bias, 0, @@ -206,8 +204,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_glo_biases() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0, - "incorrect sender id, expected 0, is {}", - sender_id + "incorrect sender id, expected 0, is {sender_id}" ); assert_eq!( msg.l1ca_bias, 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs.rs index 3686bf3328..832ffe090c 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs.rs @@ -55,8 +55,7 @@ fn test_auto_check_sbp_observation_msg_obs() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf081, - "incorrect sender id, expected 0xf081, is {}", - sender_id + "incorrect sender id, expected 0xf081, is {sender_id}" ); assert_eq!( msg.header.n_obs, 32, @@ -807,8 +806,7 @@ fn test_auto_check_sbp_observation_msg_obs() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf081, - "incorrect sender id, expected 0xf081, is {}", - sender_id + "incorrect sender id, expected 0xf081, is {sender_id}" ); assert_eq!( msg.header.n_obs, 16, @@ -880,8 +878,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf081, - "incorrect sender id, expected 0xf081, is {}", - sender_id + "incorrect sender id, expected 0xf081, is {sender_id}" ); assert_eq!( msg.header.n_obs, 32, @@ -1639,8 +1636,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf081, - "incorrect sender id, expected 0xf081, is {}", - sender_id + "incorrect sender id, expected 0xf081, is {sender_id}" ); assert_eq!( msg.header.n_obs, 16, @@ -1731,8 +1727,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf081, - "incorrect sender id, expected 0xf081, is {}", - sender_id + "incorrect sender id, expected 0xf081, is {sender_id}" ); assert_eq!( msg.header.n_obs, 32, @@ -2502,8 +2497,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0xf081, - "incorrect sender id, expected 0xf081, is {}", - sender_id + "incorrect sender id, expected 0xf081, is {sender_id}" ); assert_eq!( msg.header.n_obs, 16, diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_a.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_a.rs index 3b853b587a..e4102fbe2a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_a.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_a.rs @@ -48,8 +48,7 @@ fn test_auto_check_sbp_observation_msg_obs_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.header.n_obs, 32, @@ -306,8 +305,7 @@ fn test_auto_check_sbp_observation_msg_obs_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.header.n_obs, 33, @@ -388,8 +386,7 @@ fn test_auto_check_sbp_observation_msg_obs_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.header.n_obs, 32, @@ -646,8 +643,7 @@ fn test_auto_check_sbp_observation_msg_obs_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.header.n_obs, 33, @@ -727,8 +723,7 @@ fn test_auto_check_sbp_observation_msg_obs_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.header.n_obs, 16, @@ -928,8 +923,7 @@ fn test_auto_check_sbp_observation_msg_obs_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.header.n_obs, 16, @@ -1146,8 +1140,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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.header.n_obs, 32, @@ -1410,8 +1403,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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.header.n_obs, 33, @@ -1494,8 +1486,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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.header.n_obs, 32, @@ -1758,8 +1749,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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.header.n_obs, 33, @@ -1842,8 +1832,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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.header.n_obs, 16, @@ -2046,8 +2035,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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.header.n_obs, 16, @@ -2276,8 +2264,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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.header.n_obs, 32, @@ -2553,8 +2540,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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.header.n_obs, 33, @@ -2654,8 +2640,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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.header.n_obs, 32, @@ -2931,8 +2916,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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.header.n_obs, 33, @@ -3031,8 +3015,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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.header.n_obs, 16, @@ -3251,8 +3234,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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.header.n_obs, 16, diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_b.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_b.rs index ca6cc610e9..7a55484b4f 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_b.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_b.rs @@ -48,8 +48,7 @@ fn test_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 32, @@ -337,8 +336,7 @@ fn test_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 33, @@ -509,8 +507,7 @@ fn test_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 32, @@ -798,8 +795,7 @@ fn test_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 33, @@ -970,8 +966,7 @@ fn test_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 32, @@ -1278,8 +1273,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 32, @@ -1572,8 +1566,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 33, @@ -1746,8 +1739,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 32, @@ -2040,8 +2032,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 33, @@ -2214,8 +2205,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 32, @@ -2534,8 +2524,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 32, @@ -2842,8 +2831,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 33, @@ -3033,8 +3021,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 32, @@ -3341,8 +3328,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 33, @@ -3532,8 +3518,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_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_eq!( msg.header.n_obs, 32, diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_c.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_c.rs index 56f40ea08e..3e0d6c8e5f 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_c.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_obs_dep_c.rs @@ -47,8 +47,7 @@ fn test_auto_check_sbp_observation_msg_obs_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x9846, - "incorrect sender id, expected 0x9846, is {}", - sender_id + "incorrect sender id, expected 0x9846, is {sender_id}" ); assert_eq!( msg.header.n_obs, 32, @@ -296,8 +295,7 @@ fn test_auto_check_sbp_observation_msg_obs_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x9846, - "incorrect sender id, expected 0x9846, is {}", - sender_id + "incorrect sender id, expected 0x9846, is {sender_id}" ); assert_eq!( msg.header.n_obs, 33, @@ -467,8 +465,7 @@ fn test_auto_check_sbp_observation_msg_obs_dep_c() { 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.header.n_obs, 32, @@ -716,8 +713,7 @@ fn test_auto_check_sbp_observation_msg_obs_dep_c() { 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.header.n_obs, 33, @@ -887,8 +883,7 @@ fn test_auto_check_sbp_observation_msg_obs_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x9846, - "incorrect sender id, expected 0x9846, is {}", - sender_id + "incorrect sender id, expected 0x9846, is {sender_id}" ); assert_eq!( msg.header.n_obs, 32, @@ -1155,8 +1150,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x9846, - "incorrect sender id, expected 0x9846, is {}", - sender_id + "incorrect sender id, expected 0x9846, is {sender_id}" ); assert_eq!( msg.header.n_obs, 32, @@ -1409,8 +1403,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x9846, - "incorrect sender id, expected 0x9846, is {}", - sender_id + "incorrect sender id, expected 0x9846, is {sender_id}" ); assert_eq!( msg.header.n_obs, 33, @@ -1583,8 +1576,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_dep_c() { 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.header.n_obs, 32, @@ -1837,8 +1829,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_dep_c() { 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.header.n_obs, 33, @@ -2011,8 +2002,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_obs_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x9846, - "incorrect sender id, expected 0x9846, is {}", - sender_id + "incorrect sender id, expected 0x9846, is {sender_id}" ); assert_eq!( msg.header.n_obs, 32, @@ -2290,8 +2280,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x9846, - "incorrect sender id, expected 0x9846, is {}", - sender_id + "incorrect sender id, expected 0x9846, is {sender_id}" ); assert_eq!( msg.header.n_obs, 32, @@ -2558,8 +2547,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x9846, - "incorrect sender id, expected 0x9846, is {}", - sender_id + "incorrect sender id, expected 0x9846, is {sender_id}" ); assert_eq!( msg.header.n_obs, 33, @@ -2748,8 +2736,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_dep_c() { 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.header.n_obs, 32, @@ -3016,8 +3003,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_dep_c() { 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.header.n_obs, 33, @@ -3206,8 +3192,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_obs_dep_c() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x9846, - "incorrect sender id, expected 0x9846, is {}", - sender_id + "incorrect sender id, expected 0x9846, is {sender_id}" ); assert_eq!( msg.header.n_obs, 32, diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_osr.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_osr.rs index 010f9c362b..92b6f5631d 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_osr.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_osr.rs @@ -53,8 +53,7 @@ fn test_auto_check_sbp_observation_msg_osr() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0, - "incorrect sender id, expected 0, is {}", - sender_id + "incorrect sender id, expected 0, is {sender_id}" ); assert_eq!( msg.header.n_obs, 64, @@ -726,8 +725,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_osr() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0, - "incorrect sender id, expected 0, is {}", - sender_id + "incorrect sender id, expected 0, is {sender_id}" ); assert_eq!( msg.header.n_obs, 64, @@ -1416,8 +1414,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_osr() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0, - "incorrect sender id, expected 0, is {}", - sender_id + "incorrect sender id, expected 0, is {sender_id}" ); assert_eq!( msg.header.n_obs, 64, diff --git a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_sv_az_el.rs b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_sv_az_el.rs index 9cf3d902ed..c746d6aaf3 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_observation_msg_sv_az_el.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_observation_msg_sv_az_el.rs @@ -49,8 +49,7 @@ fn test_auto_check_sbp_observation_msg_sv_az_el() { 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.azel[0].az, 160, @@ -762,8 +761,7 @@ fn test_json2sbp_auto_check_sbp_observation_msg_sv_az_el() { 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.azel[0].az, 160, @@ -1488,8 +1486,7 @@ fn test_sbp2json_auto_check_sbp_observation_msg_sv_az_el() { 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.azel[0].az, 160, diff --git a/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_angular_rate.rs b/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_angular_rate.rs index e6526098ed..e4f5461bad 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_angular_rate.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_angular_rate.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_orientation_msg_angular_rate() { 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, @@ -109,8 +108,7 @@ fn test_json2sbp_auto_check_sbp_orientation_msg_angular_rate() { 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, @@ -182,8 +180,7 @@ fn test_sbp2json_auto_check_sbp_orientation_msg_angular_rate() { 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_orientation_msg_orient_euler.rs b/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_orient_euler.rs index 11aca26b39..0aa87df96c 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_orient_euler.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_orient_euler.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_orientation_msg_orient_euler() { 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, 3, @@ -137,8 +136,7 @@ fn test_json2sbp_auto_check_sbp_orientation_msg_orient_euler() { 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, 3, @@ -238,8 +236,7 @@ fn test_sbp2json_auto_check_sbp_orientation_msg_orient_euler() { 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, 3, diff --git a/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_orient_quat.rs b/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_orient_quat.rs index 8d1fe40140..ef94ea7836 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_orient_quat.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_orientation_msg_orient_quat.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_orientation_msg_orient_quat() { 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, @@ -131,8 +130,7 @@ fn test_json2sbp_auto_check_sbp_orientation_msg_orient_quat() { 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, @@ -226,8 +224,7 @@ fn test_sbp2json_auto_check_sbp_orientation_msg_orient_quat() { 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/sbp/tests/integration/auto_check_sbp_piksi_msg_device_monitor.rs b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_device_monitor.rs index f195d79b67..7e4fc0b8eb 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_device_monitor.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_device_monitor.rs @@ -43,8 +43,7 @@ fn test_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6165, @@ -100,8 +99,7 @@ fn test_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6168, @@ -157,8 +155,7 @@ fn test_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6166, @@ -214,8 +211,7 @@ fn test_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6150, @@ -271,8 +267,7 @@ fn test_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6123, @@ -349,8 +344,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6165, @@ -413,8 +407,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6168, @@ -477,8 +470,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6166, @@ -541,8 +533,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6150, @@ -605,8 +596,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6123, @@ -690,8 +680,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6165, @@ -766,8 +755,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6168, @@ -842,8 +830,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6166, @@ -918,8 +905,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6150, @@ -994,8 +980,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_device_monitor() { let sender_id = msg.sender_id().unwrap(); assert_eq!( sender_id, 0x425f, - "incorrect sender id, expected 0x425f, is {}", - sender_id + "incorrect sender id, expected 0x425f, is {sender_id}" ); assert_eq!( msg.cpu_temperature, 6123, diff --git a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_iar_state.rs b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_iar_state.rs index 78dcf9c19d..35dd423f49 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_iar_state.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_iar_state.rs @@ -41,8 +41,7 @@ fn test_auto_check_sbp_piksi_msg_iar_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.num_hyps, 1, @@ -76,8 +75,7 @@ fn test_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 0, @@ -111,8 +109,7 @@ fn test_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 1, @@ -146,8 +143,7 @@ fn test_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 729, @@ -181,8 +177,7 @@ fn test_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 728, @@ -216,8 +211,7 @@ fn test_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 727, @@ -251,8 +245,7 @@ fn test_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 723, @@ -309,8 +302,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_iar_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.num_hyps, 1, @@ -353,8 +345,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 0, @@ -397,8 +388,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 1, @@ -441,8 +431,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 729, @@ -485,8 +474,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 728, @@ -529,8 +517,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 727, @@ -573,8 +560,7 @@ fn test_json2sbp_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 723, @@ -636,8 +622,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_iar_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.num_hyps, 1, @@ -690,8 +675,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 0, @@ -744,8 +728,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 1, @@ -798,8 +781,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 729, @@ -852,8 +834,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 728, @@ -906,8 +887,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 727, @@ -960,8 +940,7 @@ fn test_sbp2json_auto_check_sbp_piksi_msg_iar_state() { 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.num_hyps, 723, diff --git a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_network_bandwidth_usage.rs b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_network_bandwidth_usage.rs index caea536ebd..41539cb89c 100644 Binary files a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_network_bandwidth_usage.rs and b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_network_bandwidth_usage.rs differ diff --git a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_thread_state.rs b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_thread_state.rs index 5489cef27c..eb16b9b5ff 100644 Binary files a/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_thread_state.rs and b/rust/sbp/tests/integration/auto_check_sbp_piksi_msg_thread_state.rs differ 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 f41be53ea7..3f635a6e69 100644 Binary files a/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_resp.rs and b/rust/sbp/tests/integration/auto_check_sbp_settings_msg_settings_read_by_index_resp.rs differ diff --git a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_certificate.rs b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_certificate.rs index 019317aadf..0595e2b2a3 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_certificate.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_certificate.rs @@ -49,8 +49,7 @@ fn test_auto_check_sbp_signing_msg_ed25519_certificate() { 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.certificate_bytes[0], 0, @@ -632,8 +631,7 @@ fn test_json2sbp_auto_check_sbp_signing_msg_ed25519_certificate() { 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.certificate_bytes[0], 0, @@ -1228,8 +1226,7 @@ fn test_sbp2json_auto_check_sbp_signing_msg_ed25519_certificate() { 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.certificate_bytes[0], 0, diff --git a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature.rs b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature.rs index c42cfd33db..e5a9a58138 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature.rs @@ -51,8 +51,7 @@ fn test_auto_check_sbp_signing_msg_ed25519_signature() { 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.fingerprint[0], 100, @@ -659,8 +658,7 @@ fn test_json2sbp_auto_check_sbp_signing_msg_ed25519_signature() { 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.fingerprint[0], 100, @@ -1282,8 +1280,7 @@ fn test_sbp2json_auto_check_sbp_signing_msg_ed25519_signature() { 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.fingerprint[0], 100, diff --git a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature_dep.rs b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature_dep.rs index 1f418a9a7f..12288eb0ba 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature_dep.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_signing_msg_ed25519_signature_dep.rs @@ -51,8 +51,7 @@ fn test_auto_check_sbp_signing_msg_ed25519_signature_dep() { 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.fingerprint[0], 100, @@ -649,8 +648,7 @@ fn test_json2sbp_auto_check_sbp_signing_msg_ed25519_signature_dep() { 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.fingerprint[0], 100, @@ -1262,8 +1260,7 @@ fn test_sbp2json_auto_check_sbp_signing_msg_ed25519_signature_dep() { 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.fingerprint[0], 100, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds.rs index bd1532baf4..9f098af1d0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds() { 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.const_id, 1, @@ -184,8 +183,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds() { 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.const_id, 1, @@ -332,8 +330,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_code_phase_biases_bounds() { 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.const_id, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds.rs index 4bde68f7f4..d534d202f0 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { 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.grid_point_id, 1000, @@ -229,8 +228,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { 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.grid_point_id, 1000, @@ -377,8 +375,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { 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.grid_point_id, 1000, @@ -567,8 +564,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { 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.grid_point_id, 1000, @@ -724,8 +720,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { 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.grid_point_id, 1000, @@ -927,8 +922,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_gridded_correction_bounds() { 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.grid_point_id, 1000, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds.rs index ad4454f844..9cb7e6d63f 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds() { 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.const_id, 1, @@ -184,8 +183,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds() { 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.const_id, 1, @@ -332,8 +330,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds() { 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.const_id, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation.rs index 08e4f312b3..24a80b1c81 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation() { 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.const_id, 1, @@ -150,8 +149,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation() { 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.const_id, 1, @@ -264,8 +262,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_orbit_clock_bounds_degradation() { 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.const_id, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_satellite_apc.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_satellite_apc.rs index 2d988d261e..f77998129a 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_satellite_apc.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_satellite_apc.rs @@ -45,8 +45,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_satellite_apc() { 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.apc[0].pco[0], 1, @@ -263,8 +262,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_satellite_apc() { 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.apc[0].pco[0], 1, @@ -490,8 +488,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_satellite_apc() { 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.apc[0].pco[0], 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_stec_correction.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_stec_correction.rs index 87c8a953ba..21b5a1d2fa 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_stec_correction.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_stec_correction.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_stec_correction() { 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.header.num_msgs, 1, @@ -209,8 +208,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_stec_correction() { 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.header.num_msgs, 1, @@ -382,8 +380,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_stec_correction() { 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.header.num_msgs, 1, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition.rs index 03cc26d8a2..8ea651c6af 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_tile_definition() { 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.bitmask, 1234567890, @@ -167,8 +166,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_tile_definition() { 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.bitmask, 1234567890, @@ -298,8 +296,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_tile_definition() { 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.bitmask, 1234567890, diff --git a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b.rs b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b.rs index 16661d278e..156b00f824 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b.rs @@ -44,8 +44,7 @@ fn test_auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b() { 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.bitmask, 1234567890, @@ -147,8 +146,7 @@ fn test_json2sbp_auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b() { 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.bitmask, 1234567890, @@ -258,8 +256,7 @@ fn test_sbp2json_auto_check_sbp_ssr_msg_ssr_tile_definition_dep_b() { 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.bitmask, 1234567890, diff --git a/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs b/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs index 11c9c18bc3..542d4d3f57 100644 --- a/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs +++ b/rust/sbp/tests/integration/auto_check_sbp_system_msg_dgnss_status.rs @@ -43,8 +43,7 @@ fn test_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, @@ -62,11 +61,11 @@ fn test_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"), @@ -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