gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 5334Rust 85Markdown 12TOML 91813 Definitions

cargo fmt

3f760dc2f284103c730f30e6568ef4046d3cc066 · by Dusty DeWeese · (5 years ago) · parent ba2d82902 · browse the tree at this commit

Semantic delta · 1

src/geometry.rs

1 files · +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),
         }
     }
 }