Skip to content

Commit

Permalink
Ensure use of unchecked in trait impl (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebarron authored Nov 5, 2024
1 parent 7cd8cea commit bf5ccac
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 bf5ccac

Please sign in to comment.