Skip to content

Commit 071dd0d

Browse files
committed
fix: new clippy lints on v.1.90 onwards for the macros module
1 parent f8e724d commit 071dd0d

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

canyon_macros/src/canyon_mapper_macro.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,10 @@ fn create_row_mapper_error_extracting_row(
218218
ty: &str,
219219
db_ty: DatabaseType,
220220
) -> String {
221-
std::io::Error::new(
222-
std::io::ErrorKind::Other,
223-
format!(
224-
"Failed to retrieve the `{}` field for type: {} with {}",
225-
field_ident, ty, db_ty
226-
),
227-
)
221+
std::io::Error::other(format!(
222+
"Failed to retrieve the `{}` field for type: {} with {}",
223+
field_ident, ty, db_ty
224+
))
228225
.to_string()
229226
}
230227

0 commit comments

Comments
 (0)