Skip to content

Commit

Permalink
de_conf: Fix a test (#800)
Browse files Browse the repository at this point in the history
`stringify!()` macro has changed in between Rust versions.
  • Loading branch information
Indy2222 authored Jun 19, 2024
1 parent 6770840 commit aabaa3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/conf/macros/tests/test_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit aabaa3f

Please sign in to comment.