From 95a31d1abc57a53bf3026b11450df9cc265855ce Mon Sep 17 00:00:00 2001
From: John Mitchell <6656977+StarArawn@users.noreply.github.com>
Date: Wed, 7 Dec 2022 23:30:28 -0500
Subject: [PATCH] Format code.

---
 kayak_font/src/ttf/loader.rs | 16 ++++++----------
 1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/kayak_font/src/ttf/loader.rs b/kayak_font/src/ttf/loader.rs
index 1b36643..7eb6d3e 100644
--- a/kayak_font/src/ttf/loader.rs
+++ b/kayak_font/src/ttf/loader.rs
@@ -303,20 +303,16 @@ fn calculate_plane(
     //     t = geometry_scale as f64 * (-translation_y + (h as f64 - 0.5) * inv_box_scale);
     // }
 
-    let left = loaded_file
-        .offset_x
-        .unwrap_or_default();
-    let top = loaded_file
-        .offset_y
-        .unwrap_or_default();
+    let left = loaded_file.offset_x.unwrap_or_default();
+    let top = loaded_file.offset_y.unwrap_or_default();
 
     (
         Vector2::new(translation_x, translation_y) * geometry_scale as f64,
         Rect {
-            left: left * geometry_scale,        // l as f32,
-            bottom: 0.0, // b as f32,
-            right: 0.0,  // r as f32,
-            top: top * geometry_scale,         //0.0, // t as f32,
+            left: left * geometry_scale, // l as f32,
+            bottom: 0.0,                 // b as f32,
+            right: 0.0,                  // r as f32,
+            top: top * geometry_scale,   //0.0, // t as f32,
         },
     )
 }
-- 
GitLab