This commit is contained in:
Caio 2023-06-17 17:03:31 -03:00
parent 8c8ff5f31d
commit 0e1caa765e
9 changed files with 114 additions and 72 deletions

View file

@ -85,7 +85,7 @@ fn get_lint_and_message(is_local: bool, is_comparing_arrays: bool) -> (&'static
}
}
fn is_allowed(val: &Constant) -> bool {
fn is_allowed(val: &Constant<'_>) -> bool {
match val {
&Constant::F32(f) => f == 0.0 || f.is_infinite(),
&Constant::F64(f) => f == 0.0 || f.is_infinite(),