gioser

tawasuyu/taffy

A high performance rust-powered UI layout library

Rust 497HTML 254C 19JavaScript 81329 Definitions

Minor: replaced 'Result<(), TaffyError>' by 'TaffyResult<()>' for consistency (#515)

2d78dce1a4eb9034c9fdc5e256e845e29387af29 · by Yurii Nakonechnyi · (3 years ago) · parent 6cf79606d · browse the tree at this commit

Semantic delta · 1

src/tree/taffy_tree/tree.rs

1 files · +1 −1

diff --git a/src/tree/taffy_tree/tree.rs b/src/tree/taffy_tree/tree.rs
index 2949bd2a7..a409c9e3c 100644
--- a/src/tree/taffy_tree/tree.rs
+++ b/src/tree/taffy_tree/tree.rs
@@ -427,7 +427,7 @@ impl Taffy {
     }
 
     /// Updates the stored layout of the provided `node` and its children
-    pub fn compute_layout(&mut self, node: NodeId, available_space: Size<AvailableSpace>) -> Result<(), TaffyError> {
+    pub fn compute_layout(&mut self, node: NodeId, available_space: Size<AvailableSpace>) -> TaffyResult<()> {
         compute_layout(self, node, available_space)
     }
 }