Skip to content

Commit 5bab23f

Browse files
committed
Fix clippy issue
1 parent 82d429e commit 5bab23f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

  • datafusion/datasource-csv/src

datafusion/datasource-csv/src/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,10 @@ mod charset {
5454

5555
pub fn lookup_charset(enc: Option<&str>) -> Result<Option<Infallible>> {
5656
match enc {
57-
Some(_) => Err(DataFusionError::NotImplemented(format!(
57+
Some(_) => Err(DataFusionError::NotImplemented(
5858
"The 'encoding_rs' feature must be enabled to decode non-UTF-8 encodings"
59-
)))?,
59+
.to_string(),
60+
))?,
6061
None => Ok(None),
6162
}
6263
}

0 commit comments

Comments
 (0)