From bf5ccac18332c54e41d40bdb1d3d8e7ce6fa46e3 Mon Sep 17 00:00:00 2001 From: Kyle Barron Date: Mon, 4 Nov 2024 23:18:20 -0500 Subject: [PATCH] Ensure use of `unchecked` in trait impl (#17) --- src/reader/geometry_collection.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reader/geometry_collection.rs b/src/reader/geometry_collection.rs index a228e15..3337f8c 100644 --- a/src/reader/geometry_collection.rs +++ b/src/reader/geometry_collection.rs @@ -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) } }