From f4be48c4106c422723ab528a16835a27c2318fb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Lescaudey=20de=20Maneville?= Date: Thu, 1 Feb 2024 12:28:56 +0100 Subject: [PATCH] rollback convert --- src/hex/convert.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hex/convert.rs b/src/hex/convert.rs index c42d34a..7cdd93c 100644 --- a/src/hex/convert.rs +++ b/src/hex/convert.rs @@ -17,10 +17,8 @@ impl From<[i32; 2]> for Hex { impl From<(f32, f32)> for Hex { #[inline] - // We allow this lint to avoid bumping MSRV - #[allow(clippy::tuple_array_conversions)] - fn from((x, y): (f32, f32)) -> Self { - Self::round([x, y]) + fn from(v: (f32, f32)) -> Self { + Self::round(v.into()) } }