Skip to content

Commit

Permalink
Fix linting on clippy > 1.71
Browse files Browse the repository at this point in the history
Respect the new `default_constructed_unit_structs` lint introduced in
1.71
  • Loading branch information
julienr committed Jul 25, 2023
1 parent 61d79f9 commit e47dc8a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vector/geometry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl Geometry {
let geom = unsafe { self.get_unowned_geometry(index) };
GeometryRef {
geom,
_lifetime: PhantomData::default(),
_lifetime: PhantomData,
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/vsi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}
}
Expand Down

0 comments on commit e47dc8a

Please sign in to comment.