tawasuyu

tawasuyu/taffy

A high performance rust-powered UI layout library

HTML 231Rust 10TOML 3CSS 1348 Definitions

Minor: 'CellOccupancyMatrix::is_area_in_range()' now immutable (#516)

6cf79606d96aa7ab788fcb370b4a680abd45e699 · by Yurii Nakonechnyi · (3 years ago) · parent 897487810 · browse the tree at this commit

Semantic delta · 1

src/compute/grid/types/cell_occupancy.rs

1 files · +1 −1

diff --git a/src/compute/grid/types/cell_occupancy.rs b/src/compute/grid/types/cell_occupancy.rs
index 5e011c64c..ff0727492 100644
--- a/src/compute/grid/types/cell_occupancy.rs
+++ b/src/compute/grid/types/cell_occupancy.rs
@@ -72,7 +72,7 @@ impl CellOccupancyMatrix {
 
     /// Determines whether the specified area fits within the tracks currently represented by the matrix
     pub fn is_area_in_range(
-        &mut self,
+        &self,
         primary_axis: AbsoluteAxis,
         primary_range: Range<i16>,
         secondary_range: Range<i16>,