Skip to content

Commit

Permalink
Minor: replaced 'Result<(), TaffyError>' by 'TaffyResult<()>' for con…
Browse files Browse the repository at this point in the history
…sistency
  • Loading branch information
inobelar committed Jul 20, 2023
1 parent 6cf7960 commit 36c41b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/taffy_tree/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
}
Expand Down

0 comments on commit 36c41b2

Please sign in to comment.