tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 583HTML 275Markdown 8TOML 41586 Definiciones

cargo fmt

3f760dc2f284103c730f30e6568ef4046d3cc066 · por Dusty DeWeese · (hace 5 años) · padre ba2d82902 · 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),
         }
     }
 }