refactor(rust): avoid panics where possible

This commit is contained in:
Amaan Qureshi 2025-09-22 21:06:50 -04:00 committed by Amaan Qureshi
parent 47c9256976
commit b0cdab85fe
2 changed files with 5 additions and 2 deletions

View file

@ -351,7 +351,7 @@ impl From<ffi::TSQuantifier> for CaptureQuantifier {
ffi::TSQuantifierZeroOrMore => Self::ZeroOrMore,
ffi::TSQuantifierOne => Self::One,
ffi::TSQuantifierOneOrMore => Self::OneOrMore,
_ => panic!("Unrecognized quantifier: {value}"),
_ => unreachable!(),
}
}
}