Skip to content

Commit 5b607ef

Browse files
committed
fix cargo fmt ; rm useless parentheses
1 parent d1a4831 commit 5b607ef

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libcasr/src/rust.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ pub struct RustPanic;
1212

1313
impl Exception for RustPanic {
1414
fn parse_exception(stderr: &str) -> Option<ExecutionClass> {
15-
let rexception = Regex::new(r"thread '.+?' (((\(\d+\)) )|)panicked at (?:'(.*)'|.+?:\n(.*))").unwrap();
15+
let rexception =
16+
Regex::new(r"thread '.+?' (\(\d+\) |)panicked at (?:'(.*)'|.+?:\n(.*))").unwrap();
1617
let captures = rexception.captures(stderr)?;
1718
let message = if let Some(message) = captures.get(1) {
1819
message.as_str()

0 commit comments

Comments
 (0)