Skip to content

Commit

Permalink
rollback convert
Browse files Browse the repository at this point in the history
  • Loading branch information
ManevilleF committed Feb 1, 2024
1 parent b81b82e commit f4be48c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hex/convert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}

Expand Down

0 comments on commit f4be48c

Please sign in to comment.