From 258dbafbc31b9858c130e2959cd3fc179610aba5 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 29 Oct 2024 14:24:05 +0700 Subject: [PATCH] Fix `clippy::legacy_numeric_constants` lint --- src/geometry/rotation_specialization.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geometry/rotation_specialization.rs b/src/geometry/rotation_specialization.rs index 45db03528..a464d38a8 100644 --- a/src/geometry/rotation_specialization.rs +++ b/src/geometry/rotation_specialization.rs @@ -100,7 +100,7 @@ impl Rotation2 { T: RealField, { if max_iter == 0 { - max_iter = usize::max_value(); + max_iter = usize::MAX; } let mut rot = guess.into_inner();