Skip to content

Commit f5731f7

Browse files
author
eulegang
committed
Fixing matches! macro support
1 parent dfebb0f commit f5731f7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/lib.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -683,9 +683,13 @@ impl Library {
683683
continue;
684684
}
685685

686-
if matches!(subopt, "-framework" | "-isystem" | "-iquote" | "idirafter") {
687-
pop = true;
688-
continue;
686+
match subopt {
687+
"-framework" | "-isystem" | "-iquote" | "idirafter" => {
688+
pop = true;
689+
continue;
690+
}
691+
692+
_ => (),
689693
}
690694

691695
ld_option.push(subopt);

0 commit comments

Comments
 (0)