Skip to content

Commit

Permalink
Update: appease clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Graham Enos committed Jun 2, 2022
1 parent d0f8bcb commit 15b79a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -452,12 +452,12 @@ fn format_complex(value: &Complex64) -> String {
} else {
let mut out = lexical::to_string_with_options::<_, FORMAT>(value.re, &options);
if value.im > 0f64 {
out.push_str("+")
out.push('+')
}
out.push_str(&lexical::to_string_with_options::<_, FORMAT>(
value.im, &options,
));
out.push_str("i");
out.push('i');
out
}
}
Expand Down

0 comments on commit 15b79a3

Please sign in to comment.