Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
Signed-off-by: TennyZhuang <[email protected]>
  • Loading branch information
TennyZhuang committed Sep 6, 2022
1 parent dc5e0c4 commit c06327d
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/expr/src/expr/expr_to_char_const_tmpl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,11 @@ impl Expression for ExprToCharConstTmpl {
for (data, vis) in data_arr.iter().zip_eq(input.vis().iter()) {
if !vis {
output.append_null()?;
} else if let Some(data) = data {
let res = data.0.format(&self.ctx.chrono_tmpl).to_string();
output.append(Some(res.as_str()))?;
} else {
if let Some(data) = data {
let res = data.0.format(&self.ctx.chrono_tmpl).to_string();
output.append(Some(res.as_str()))?;
} else {
output.append_null()?;
}
output.append_null()?;
}
}

Expand Down

0 comments on commit c06327d

Please sign in to comment.