Skip to content

Commit

Permalink
fix: useless borrow in test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
ethe committed Jul 24, 2024
1 parent 0bcbbac commit adca1d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/compaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Test, TokioExecutor>(&option, table_gen_1, |mutable| {
build_parquet_table::<Test, TokioExecutor>(option, table_gen_1, |mutable| {
mutable.insert(
Test {
vstring: 1.to_string(),
Expand Down Expand Up @@ -623,7 +623,7 @@ pub(crate) mod tests {
})
.await
.unwrap();
build_parquet_table::<Test, TokioExecutor>(&option, table_gen_2, |mutable| {
build_parquet_table::<Test, TokioExecutor>(option, table_gen_2, |mutable| {
mutable.insert(
Test {
vstring: 4.to_string(),
Expand Down Expand Up @@ -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::<Test, TokioExecutor>(&option, table_gen_3, |mutable| {
build_parquet_table::<Test, TokioExecutor>(option, table_gen_3, |mutable| {
mutable.insert(
Test {
vstring: 1.to_string(),
Expand Down Expand Up @@ -684,7 +684,7 @@ pub(crate) mod tests {
})
.await
.unwrap();
build_parquet_table::<Test, TokioExecutor>(&option, table_gen_4, |mutable| {
build_parquet_table::<Test, TokioExecutor>(option, table_gen_4, |mutable| {
mutable.insert(
Test {
vstring: 4.to_string(),
Expand Down Expand Up @@ -712,7 +712,7 @@ pub(crate) mod tests {
})
.await
.unwrap();
build_parquet_table::<Test, TokioExecutor>(&option, table_gen_5, |mutable| {
build_parquet_table::<Test, TokioExecutor>(option, table_gen_5, |mutable| {
mutable.insert(
Test {
vstring: 7.to_string(),
Expand Down

0 comments on commit adca1d8

Please sign in to comment.