Skip to content

Commit f5a4a1b

Browse files
committed
wrapper: improve match
1 parent 4937823 commit f5a4a1b

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/wrapper.rs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,14 @@ impl Wrapper {
641641
}
642642
}
643643
},
644-
_ => unreachable!(),
644+
Wrapper::NoRefs
645+
| Wrapper::Hex
646+
| Wrapper::Exp
647+
| Wrapper::NumberFmt
648+
| Wrapper::RangeOps
649+
| Wrapper::MathOps
650+
| Wrapper::BoolOps
651+
| Wrapper::BitOps => unreachable!(),
645652
}
646653
}
647654
}
@@ -984,7 +991,11 @@ impl WrapperMut {
984991
}
985992
}
986993
},
987-
_ => unreachable!(),
994+
WrapperMut::NoRefs
995+
| WrapperMut::RangeMut
996+
| WrapperMut::MathAssign
997+
| WrapperMut::BoolAssign
998+
| WrapperMut::BitAssign => unreachable!(),
988999
}
9891000
}
9901001
}

0 commit comments

Comments
 (0)