From ce3efc543bacde47ebd7fe0c9e7a6a21b874b480 Mon Sep 17 00:00:00 2001 From: Bruce Mitchener Date: Tue, 30 Dec 2025 11:06:11 +0700 Subject: [PATCH] Remove unused imports of `core_maths::CoreFloat` With the recent bump in MSRV, these should no longer be needed. --- parley/src/layout/data.rs | 3 --- parley/src/util.rs | 4 ---- 2 files changed, 7 deletions(-) diff --git a/parley/src/layout/data.rs b/parley/src/layout/data.rs index b93a7534d..5586d5a48 100644 --- a/parley/src/layout/data.rs +++ b/parley/src/layout/data.rs @@ -12,9 +12,6 @@ use alloc::vec::Vec; use crate::analysis::cluster::Whitespace; use crate::analysis::{Boundary, CharInfo}; -#[cfg(feature = "libm")] -#[allow(unused_imports)] -use core_maths::CoreFloat; #[derive(Copy, Clone, Debug, PartialEq)] pub(crate) struct ClusterData { diff --git a/parley/src/util.rs b/parley/src/util.rs index 729c2ea03..a9638800a 100644 --- a/parley/src/util.rs +++ b/parley/src/util.rs @@ -3,10 +3,6 @@ //! Misc helpers. -#[cfg(feature = "libm")] -#[allow(unused_imports)] -use core_maths::CoreFloat; - pub(crate) fn nearly_eq(x: f32, y: f32) -> bool { (x - y).abs() < f32::EPSILON }