Skip to content

Commit 1c05032

Browse files
committed
chore: clippy improvements
1 parent 851bcc9 commit 1c05032

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

datafusion/core/src/dataframe/parquet.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ impl DataFrame {
9595

9696
let plan = LogicalPlanBuilder::copy_to(
9797
plan,
98-
path.into(),
98+
path,
9999
file_type,
100100
Default::default(),
101101
options.partition_by,

datafusion/core/src/execution/context/parquet.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -248,9 +248,8 @@ mod tests {
248248
partitioned_df.write_parquet(&path, options, None).await?;
249249

250250
let test_path = std::path::Path::new(&path);
251-
assert_eq!(
251+
assert!(
252252
test_path.is_dir(),
253-
true,
254253
"No extension and default DataFrameWriteOptons should have yielded a dir."
255254
);
256255

@@ -287,9 +286,8 @@ mod tests {
287286
partitioned_df.write_parquet(&path, options, None).await?;
288287

289288
let test_path = std::path::Path::new(&path);
290-
assert_eq!(
289+
assert!(
291290
test_path.is_file(),
292-
true,
293291
"No extension and DataFrameWriteOptons::with_single_file_output(true) should have yielded a single file."
294292
);
295293

0 commit comments

Comments
 (0)