gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 501HTML 254C 19JavaScript 81414 Definiciones

cargo fmt

41fed109984456ad9b446be172e49b7c5d605168 · por Dusty DeWeese · (hace 5 años) · padre b1287019e · ver el árbol en este commit

Delta semántico · 1

src/geometry.rs

1 archivos · +2 −2

diff --git a/src/geometry.rs b/src/geometry.rs
index 3d84476ef..21c1206dc 100644
--- a/src/geometry.rs
+++ b/src/geometry.rs
@@ -25,13 +25,13 @@ impl<T> Rect<T> {
     pub(crate) fn zip_size<R, F, U>(self, size: Size<U>, f: F) -> Rect<R>
     where
         F: Fn(T, U) -> R,
-        U: Copy
+        U: Copy,
     {
         Rect {
             start: f(self.start, size.width),
             end: f(self.end, size.width),
             top: f(self.top, size.height),
-            bottom: f(self.bottom, size.height)
+            bottom: f(self.bottom, size.height),
         }
     }
 }