Skip to content

Commit

Permalink
clippy vs LTS
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianBeilschmidt committed Aug 15, 2022
1 parent ec4e1c1 commit 0e6a8b6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,9 @@ use thiserror::Error;

use gdal_sys::{CPLErr, OGRErr, OGRFieldType, OGRwkbGeometryType};

use crate::raster::ExtendedDataType;

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

#[derive(Clone, PartialEq, Debug, Error)]
#[derive(Clone, PartialEq, Eq, Debug, Error)]
pub enum GdalError {
#[error("FfiNulError")]
FfiNulError(#[from] std::ffi::NulError),
Expand Down Expand Up @@ -72,9 +70,11 @@ pub enum GdalError {
UnlinkMemFile { file_name: String },
#[error("BadArgument")]
BadArgument(String),

#[cfg(all(major_ge_3, minor_ge_1))]
#[error("Unhandled type '{data_type:?}' on GDAL MD method {method_name}")]
UnsupportedMdDataType {
data_type: ExtendedDataType,
data_type: crate::raster::ExtendedDataType,
method_name: &'static str,
},
}
Expand Down

0 comments on commit 0e6a8b6

Please sign in to comment.