Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
alamb committed Aug 8, 2023
1 parent 11cb2b1 commit 7920617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion datafusion/core/src/datasource/file_format/csv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ impl FileFormat for CsvFormat {
conf,
self.has_header,
self.delimiter,
self.file_compression_type.clone(),
self.file_compression_type,
));

Ok(Arc::new(InsertExec::new(input, sink, sink_schema)) as _)
Expand Down
2 changes: 1 addition & 1 deletion datafusion/core/src/datasource/file_format/json.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ impl FileFormat for JsonFormat {
));
}
let sink_schema = conf.output_schema().clone();
let sink = Arc::new(JsonSink::new(conf, self.file_compression_type.clone()));
let sink = Arc::new(JsonSink::new(conf, self.file_compression_type));

Ok(Arc::new(InsertExec::new(input, sink, sink_schema)) as _)
}
Expand Down

0 comments on commit 7920617

Please sign in to comment.