Skip to content

Commit 13b9320

Browse files
authored
trivial: remove unnecessary clone()s (#2066)
1 parent 3a498c4 commit 13b9320

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

native/core/src/execution/planner.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3388,7 +3388,7 @@ mod tests {
33883388

33893389
// generate test data in the temp folder
33903390
let tmp_dir = TempDir::new()?;
3391-
let test_path = tmp_dir.path().to_str().unwrap().to_string();
3391+
let test_path = tmp_dir.path().to_str().unwrap();
33923392

33933393
let plan = session_ctx
33943394
.sql(test_data_query)
@@ -3397,13 +3397,11 @@ mod tests {
33973397
.await?;
33983398

33993399
// Write a parquet file into temp folder
3400-
session_ctx
3401-
.write_parquet(plan, test_path.clone(), None)
3402-
.await?;
3400+
session_ctx.write_parquet(plan, test_path, None).await?;
34033401

34043402
// Register all parquet with temp data as file groups
34053403
let mut file_groups: Vec<FileGroup> = vec![];
3406-
for entry in std::fs::read_dir(&test_path)? {
3404+
for entry in std::fs::read_dir(test_path)? {
34073405
let entry = entry?;
34083406
let path = entry.path();
34093407

0 commit comments

Comments
 (0)