Fix clippy errors
diff --git a/crates/encoding/src/estimate.rs b/crates/encoding/src/estimate.rs
index 7d5facb..92f0417 100644
--- a/crates/encoding/src/estimate.rs
+++ b/crates/encoding/src/estimate.rs
@@ -158,7 +158,7 @@
 
         self.count_stroke_caps(style.start_cap, scaled_width, caps);
         self.count_stroke_caps(style.end_cap, scaled_width, caps);
-        self.count_stroke_joins(style.join, scaled_width, style.miter_limit as f64, joins);
+        self.count_stroke_joins(style.join, scaled_width, style.miter_limit, joins);
     }
 
     /// Produce the final total, applying an optional transform to all content.
@@ -301,7 +301,7 @@
     let chord_len = (p3 - p0).length();
     // Length of the control polygon
     let poly_len = (p1 - p0).length() + (p2 - p1).length() + (p3 - p2).length();
-    0.5 * (chord_len + poly_len) as f64
+    0.5 * (chord_len + poly_len)
 }
 
 fn count_segments_for_cubic(p0: Vec2, p1: Vec2, p2: Vec2, p3: Vec2, t: &Transform) -> f64 {