From 4d24038fe2863b2196b717b353e2f74327112beb Mon Sep 17 00:00:00 2001 From: Martin Indra Date: Wed, 19 Jun 2024 14:07:11 +0200 Subject: [PATCH] de_conf: Fix a test stringify!() macro has changed in between Rust versions. --- crates/conf/macros/tests/test_macro.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/conf/macros/tests/test_macro.rs b/crates/conf/macros/tests/test_macro.rs index 0130b9a7..d47e4b71 100644 --- a/crates/conf/macros/tests/test_macro.rs +++ b/crates/conf/macros/tests/test_macro.rs @@ -99,7 +99,7 @@ fn test_derive_config_default_camera_fail() { rotation_sensitivity: 0., }; assert_eq!(&config.check().unwrap_err()[0].0, - "rotation_sensitivity failed check. value 0.0 did not pass closure (| rotation_sensitivity : & f32 |\n{\n ensure!\n (* rotation_sensitivity > 0.,\n \"`rotation_sensitivity` must be greater than 0.0.\") ; Ok(())\n}), Error: `rotation_sensitivity` must be greater than 0.0.",); + "rotation_sensitivity failed check. value 0.0 did not pass closure (| rotation_sensitivity : & f32 |\n{\n ensure!\n (* rotation_sensitivity > 0.,\n \"`rotation_sensitivity` must be greater than 0.0.\"); Ok(())\n}), Error: `rotation_sensitivity` must be greater than 0.0.",); } #[test]