Skip to content

Commit

Permalink
Ensure use of unchecked in trait impl
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron committed Nov 5, 2024
1 parent 7cd8cea commit a21eb6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/reader/geometry_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ impl<'a> GeometryCollectionTrait for GeometryCollection<'a> {
}

unsafe fn geometry_unchecked(&self, i: usize) -> Self::GeometryType<'_> {
&self.geometries[i]
self.geometries.get_unchecked(i)
}
}

0 comments on commit a21eb6d

Please sign in to comment.