We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c38d43 commit 7d6f157Copy full SHA for 7d6f157
1 file changed
server/http/tests/response.rs
@@ -71,7 +71,12 @@ fn canonical_serialization() {
71
);
72
73
// Value::Float
74
- assert_resp!(r#"{"data":{"float":3.14159}}"#, object! { float: 3.14159 });
+ #[allow(clippy::approx_constant)]
75
+ let almost_pi = 3.14159_f64;
76
+ assert_resp!(
77
+ r#"{"data":{"float":3.14159}}"#,
78
+ object! { float: almost_pi }
79
+ );
80
81
// Value::String
82
assert_resp!(
0 commit comments