From adca1d8790c5a2ce92b357a044841c14ab24b84f Mon Sep 17 00:00:00 2001 From: Gwo Tzu-Hsing Date: Wed, 24 Jul 2024 15:34:22 +0800 Subject: [PATCH] fix: useless borrow in test cases --- src/compaction/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/compaction/mod.rs b/src/compaction/mod.rs index 04c0c520..8b31c915 100644 --- a/src/compaction/mod.rs +++ b/src/compaction/mod.rs @@ -595,7 +595,7 @@ pub(crate) mod tests { // level 0 let table_gen_1 = FileId::new(); let table_gen_2 = FileId::new(); - build_parquet_table::(&option, table_gen_1, |mutable| { + build_parquet_table::(option, table_gen_1, |mutable| { mutable.insert( Test { vstring: 1.to_string(), @@ -623,7 +623,7 @@ pub(crate) mod tests { }) .await .unwrap(); - build_parquet_table::(&option, table_gen_2, |mutable| { + build_parquet_table::(option, table_gen_2, |mutable| { mutable.insert( Test { vstring: 4.to_string(), @@ -656,7 +656,7 @@ pub(crate) mod tests { let table_gen_3 = FileId::new(); let table_gen_4 = FileId::new(); let table_gen_5 = FileId::new(); - build_parquet_table::(&option, table_gen_3, |mutable| { + build_parquet_table::(option, table_gen_3, |mutable| { mutable.insert( Test { vstring: 1.to_string(), @@ -684,7 +684,7 @@ pub(crate) mod tests { }) .await .unwrap(); - build_parquet_table::(&option, table_gen_4, |mutable| { + build_parquet_table::(option, table_gen_4, |mutable| { mutable.insert( Test { vstring: 4.to_string(), @@ -712,7 +712,7 @@ pub(crate) mod tests { }) .await .unwrap(); - build_parquet_table::(&option, table_gen_5, |mutable| { + build_parquet_table::(option, table_gen_5, |mutable| { mutable.insert( Test { vstring: 7.to_string(),