From 9a2a54ba60849376811be4bbd13a443521f2e6c6 Mon Sep 17 00:00:00 2001 From: Julien Rebetez Date: Tue, 25 Jul 2023 20:44:25 +0200 Subject: [PATCH] Fix linting on clippy > 1.71 --- src/vector/geometry.rs | 2 +- src/vsi.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vector/geometry.rs b/src/vector/geometry.rs index 54a337c85..03ba4ef1c 100644 --- a/src/vector/geometry.rs +++ b/src/vector/geometry.rs @@ -215,7 +215,7 @@ impl Geometry { let geom = unsafe { self.get_unowned_geometry(index) }; GeometryRef { geom, - _lifetime: PhantomData::default(), + _lifetime: PhantomData, } } diff --git a/src/vsi.rs b/src/vsi.rs index 66e760563..b09e99984 100644 --- a/src/vsi.rs +++ b/src/vsi.rs @@ -81,7 +81,7 @@ impl<'d> MemFileRef<'d> { pub fn new(file_name: &Path) -> MemFileRef<'d> { Self { file_name: file_name.into(), - data_ref: PhantomData::default(), + data_ref: PhantomData, } } }