Skip to content

Commit 6b90af7

Browse files
committed
Fix clippy::match_bool
1 parent 19d7d52 commit 6b90af7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,10 +1318,7 @@ where
13181318
// split off real and imaginary parts
13191319
if b.is_empty() {
13201320
// input was either pure real or pure imaginary
1321-
b = match a.ends_with(imag) {
1322-
false => "0i",
1323-
true => "0",
1324-
};
1321+
b = if a.ends_with(imag) { "0" } else { "0i" };
13251322
}
13261323

13271324
let re;

0 commit comments

Comments
 (0)