Skip to content

Commit

Permalink
Use &self instead of &mut self for detailed_layout_info method (#779)
Browse files Browse the repository at this point in the history
Signed-off-by: Nico Burns <nico@nicoburns.com>
  • Loading branch information
nicoburns authored Jan 6, 2025
1 parent 029ca46 commit 4490b1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree/taffy_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -822,7 +822,7 @@ impl<NodeContext> TaffyTree<NodeContext> {
/// Currently this is only implemented for CSS Grid containers where it contains
/// the computed size of each grid track and the computed placement of each grid item
#[cfg(feature = "detailed_layout_info")]
pub fn detailed_layout_info(&mut self, node_id: NodeId) -> &DetailedLayoutInfo {
pub fn detailed_layout_info(&self, node_id: NodeId) -> &DetailedLayoutInfo {
&self.nodes[node_id.into()].detailed_layout_info
}

Expand Down

0 comments on commit 4490b1b

Please sign in to comment.