Skip to content

Commit 6510e84

Browse files
committed
refactor(cubesql): Fix unwrap_or_default warning
1 parent 5139acf commit 6510e84

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

rust/cubesql/cubesql/Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,5 @@ unnecessary_mut_passed = "allow"
140140
unnecessary_to_owned = "allow"
141141
unnecessary_unwrap = "allow"
142142
unused_unit = "allow"
143-
unwrap_or_default = "allow"
144143
useless_format = "allow"
145144
wrong_self_convention = "allow"

rust/cubesql/cubesql/src/compile/test/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -828,7 +828,7 @@ impl TransportService for TestConnectionTransport {
828828
"SELECT * FROM {}",
829829
serde_json::to_string_pretty(&inputs).unwrap()
830830
),
831-
expression_params.unwrap_or(Vec::new()),
831+
expression_params.unwrap_or_default(),
832832
),
833833
})
834834
}

0 commit comments

Comments
 (0)