Skip to content

Commit af1ecf4

Browse files
committed
fix: resolves lint issues
1 parent 00088f9 commit af1ecf4

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

arrow-pg/src/datatypes/df.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ where
160160
return Err(PgWireError::UserError(Box::new(ErrorInfo::new(
161161
"FATAL".to_string(),
162162
"XX000".to_string(),
163-
format!("Unsupported parameter type: {}", pg_type),
163+
format!("Unsupported parameter type: {pg_type}"),
164164
))));
165165
}
166166
}

arrow-pg/src/encoder.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,7 @@ pub fn encode_value<T: Encoder>(
496496
postgres_types::Kind::Composite(fields) => fields,
497497
_ => {
498498
return Err(PgWireError::ApiError(ToSqlError::from(format!(
499-
"Failed to unwrap a composite type from type {}",
500-
type_
499+
"Failed to unwrap a composite type from type {type_}"
501500
))));
502501
}
503502
};
@@ -529,8 +528,7 @@ pub fn encode_value<T: Encoder>(
529528
.or_else(|| get_dict_values!(UInt64Type))
530529
.ok_or_else(|| {
531530
ToSqlError::from(format!(
532-
"Unsupported dictionary key type for value type {}",
533-
value_type
531+
"Unsupported dictionary key type for value type {value_type}",
534532
))
535533
})?;
536534

0 commit comments

Comments
 (0)