refactor(rust): avoid panics where possible
This commit is contained in:
parent
47c9256976
commit
b0cdab85fe
2 changed files with 5 additions and 2 deletions
|
|
@ -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!(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue