Skip to content

Commit ba8b5eb

Browse files
committed
chore: codefmt
1 parent b4ae9ae commit ba8b5eb

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/binder/create_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ impl<T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'_, '_, T, A>
106106
}
107107

108108
fn bind_constraint<F: Fn(usize, &mut ColumnDesc)>(
109-
table_columns: &mut Vec<ColumnCatalog>,
109+
table_columns: &mut [ColumnCatalog],
110110
exprs: &[IndexColumn],
111111
fn_constraint: F,
112112
) -> Result<(), DatabaseError> {

src/binder/update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use std::slice;
2929
use std::sync::Arc;
3030

3131
impl<T: Transaction, A: AsRef<[(&'static str, DataValue)]>> Binder<'_, '_, T, A> {
32-
fn single_ident_from_object_name<'a>(name: &'a ObjectName) -> Result<&'a Ident, DatabaseError> {
32+
fn single_ident_from_object_name(name: &ObjectName) -> Result<&Ident, DatabaseError> {
3333
if name.0.len() != 1 {
3434
return Err(attach_span_if_absent(
3535
DatabaseError::invalid_column(name.to_string()),

src/optimizer/plan_utils.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ pub fn replace_child_with_only_child(plan: &mut LogicalPlan, child_idx: usize) -
120120
pub fn wrap_child_with(plan: &mut LogicalPlan, child_idx: usize, operator: Operator) -> bool {
121121
if let Some(slot) = child_mut(plan, child_idx) {
122122
let previous = mem::replace(slot, LogicalPlan::new(operator, Childrens::None));
123-
slot.childrens = Box::new(Childrens::Only(Box::new(previous)));
123+
*slot.childrens = Childrens::Only(Box::new(previous));
124124
true
125125
} else {
126126
false

0 commit comments

Comments
 (0)