Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions fontique/src/attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
//! Properties for specifying font weight, width and style.

#[cfg(feature = "libm")]
#[allow(unused_imports)]
use core_maths::CoreFloat;
#[cfg_attr(feature = "std", allow(unused_imports))]
use core_maths::CoreFloat as _;

use core::fmt;

Expand Down
4 changes: 0 additions & 4 deletions parley/src/layout/data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ use swash::text::cluster::{Boundary, Whitespace};

use alloc::vec::Vec;

#[cfg(feature = "libm")]
#[allow(unused_imports)]
use core_maths::CoreFloat;

#[derive(Copy, Clone, Debug, PartialEq)]
pub(crate) struct ClusterData {
pub(crate) info: ClusterInfo,
Expand Down
4 changes: 2 additions & 2 deletions parley/src/layout/line_break.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ use alloc::vec::Vec;
use swash::text::cluster::Whitespace;

#[cfg(feature = "libm")]
#[allow(unused_imports)]
use core_maths::CoreFloat;
#[cfg_attr(feature = "std", allow(unused_imports))]
use core_maths::CoreFloat as _;

use crate::OverflowWrap;
use crate::layout::{
Expand Down
4 changes: 0 additions & 4 deletions parley/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
Loading