Skip to content

Commit

Permalink
[write-fonts] Make util module private
Browse files Browse the repository at this point in the history
As it doesn't seem to actually be used by any public consumer; we can
revist this if somebody needs it.
  • Loading branch information
cmyr authored and dfrg committed Aug 2, 2023
1 parent 818531a commit 715e016
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion write-fonts/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ pub mod pens;
mod round;
mod table_type;
pub mod tables;
pub mod util;
mod util;
pub mod validate;
mod write;

Expand Down
5 changes: 1 addition & 4 deletions write-fonts/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,7 @@ impl Default for FloatComparator {
/// Create a new FloatComparator with `rel_to=1e-9` and `abs_tol=0.0`.
fn default() -> Self {
// same defaults as Python's math.isclose so we can match fontTools
Self {
rel_tol: 1e-9,
abs_tol: 0.0,
}
Self::new(1e-9, 0.0)
}
}

Expand Down

0 comments on commit 715e016

Please sign in to comment.