Skip to content

Commit

Permalink
second try of not enforcing Eq on Error
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianBeilschmidt committed Aug 15, 2022
1 parent 0e6a8b6 commit 7daea81
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ use gdal_sys::{CPLErr, OGRErr, OGRFieldType, OGRwkbGeometryType};

pub type Result<T> = std::result::Result<T, GdalError>;

#[derive(Clone, PartialEq, Eq, Debug, Error)]
#[allow(unknown_lints, clippy::derive_partial_eq_without_eq)] // only enforce `PartialEq` for `GdalError`
#[derive(Clone, PartialEq, Debug, Error)]
pub enum GdalError {
#[error("FfiNulError")]
FfiNulError(#[from] std::ffi::NulError),
Expand Down

0 comments on commit 7daea81

Please sign in to comment.