Float biteq macros can be unused if test is skipped.

This commit is contained in:
Orson Peters
2022-02-19 12:23:54 +01:00
committed by Urgau
parent 18d61bfbf4
commit 85d5171dea
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -299,6 +299,7 @@ fn test_is_sign_negative() {
assert!((-f32::NAN).is_sign_negative());
}
#[allow(unused_macros)]
macro_rules! assert_f32_biteq {
($left : expr, $right : expr) => {
let l: &f32 = &$left;
+1
View File
@@ -289,6 +289,7 @@ fn test_is_sign_negative() {
assert!((-f64::NAN).is_sign_negative());
}
#[allow(unused_macros)]
macro_rules! assert_f64_biteq {
($left : expr, $right : expr) => {
let l: &f64 = &$left;