diff options
| author | mo khan <mo@mokhan.ca> | 2025-09-25 09:30:34 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-09-25 09:30:34 -0600 |
| commit | 3d45c9137eb138e7e0515363e9059d36d29955e0 (patch) | |
| tree | 8b46aaa203580d0ab9986225927bec95511a0e3b | |
| parent | 4d2898752913d92caabbb78434fbfabb4fff199f (diff) | |
refactor: rename function
| -rw-r--r-- | src/formatter.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/formatter.rs b/src/formatter.rs index c6f3dbc..aad57ec 100644 --- a/src/formatter.rs +++ b/src/formatter.rs @@ -366,7 +366,7 @@ fn format_expr(expr: &Expr) -> String { conditions, else_result, .. - } => format_case_expr_new(operand, conditions, else_result), + } => format_case_expr(operand, conditions, else_result), Expr::Function(function) => format_function(function), Expr::Subquery(query) => { let mut result = String::new(); @@ -430,7 +430,7 @@ fn format_expr(expr: &Expr) -> String { } } -fn format_case_expr_new( +fn format_case_expr( operand: &Option<Box<Expr>>, conditions: &Vec<CaseWhen>, else_result: &Option<Box<Expr>>, |
