File tree 2 files changed +3
-6
lines changed
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -4896,7 +4896,6 @@ fn test_casr_lua() {
4896
4896
}
4897
4897
}
4898
4898
4899
-
4900
4899
#[ test]
4901
4900
#[ cfg( target_arch = "x86_64" ) ]
4902
4901
fn test_casr_js ( ) {
Original file line number Diff line number Diff line change @@ -16,11 +16,9 @@ pub struct LuaException {
16
16
impl LuaException {
17
17
/// Create new `LuaException` instance from stream
18
18
pub fn new ( stream : & str ) -> Option < Self > {
19
- let re = Regex :: new ( r#"\S+: .+\n\s*stack traceback:\n(?:.*\n)*\s+\[C\]: (?:in|at) .+"# )
20
- . unwrap ( ) ;
21
- let Some ( mat) = re. find ( stream) else {
22
- return None ;
23
- } ;
19
+ let re =
20
+ Regex :: new ( r#"\S+: .+\n\s*stack traceback:\n(?:.*\n)*\s+\[C\]: (?:in|at) .+"# ) . unwrap ( ) ;
21
+ let mat = re. find ( stream) ?;
24
22
Some ( LuaException {
25
23
message : mat. as_str ( ) . to_string ( ) ,
26
24
} )
You can’t perform that action at this time.
0 commit comments