We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19d7d52 commit 6b90af7Copy full SHA for 6b90af7
1 file changed
src/lib.rs
@@ -1318,10 +1318,7 @@ where
1318
// split off real and imaginary parts
1319
if b.is_empty() {
1320
// input was either pure real or pure imaginary
1321
- b = match a.ends_with(imag) {
1322
- false => "0i",
1323
- true => "0",
1324
- };
+ b = if a.ends_with(imag) { "0" } else { "0i" };
1325
}
1326
1327
let re;
0 commit comments