From a708148bf9e687c19b2dd47a7c2d905ee5a972b3 Mon Sep 17 00:00:00 2001 From: Lukas Rieger Date: Sun, 9 Feb 2025 19:20:35 +0100 Subject: [PATCH] fix clippy warnings: this looks like a formatting argument but it is not part of a formatting macro --- .../builtin_tests/geometry/quaternion_test.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/itest/rust/src/builtin_tests/geometry/quaternion_test.rs b/itest/rust/src/builtin_tests/geometry/quaternion_test.rs index 2a58a6d68..be86eb820 100644 --- a/itest/rust/src/builtin_tests/geometry/quaternion_test.rs +++ b/itest/rust/src/builtin_tests/geometry/quaternion_test.rs @@ -41,13 +41,19 @@ fn quaternion_from_axis_angle() { assert_eq_approx!(quat.w, 0.877583); // 2. Should panic if axis is not normalized. - expect_panic("Quaternion axis {axis:?} is not normalized.", || { - Quaternion::from_axis_angle(Vector3::ZERO, 1.0); - }); + expect_panic( + &format!("Quaternion axis {:?} is not normalized.", Vector3::ZERO), + || { + Quaternion::from_axis_angle(Vector3::ZERO, 1.0); + }, + ); - expect_panic("Quaternion axis {axis:?} is not normalized.", || { - Quaternion::from_axis_angle(Vector3::UP * 0.7, 1.0); - }); + expect_panic( + &format!("Quaternion axis {:?} is not normalized.", Vector3::UP * 0.7), + || { + Quaternion::from_axis_angle(Vector3::UP * 0.7, 1.0); + }, + ); } #[itest]