Skip to content

Commit

Permalink
Fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
SweetVishnya committed Jan 14, 2025
1 parent 141ffba commit dcbbee9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libcasr/src/python.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ impl ParseStacktrace for PythonStacktrace {
fn parse_stacktrace(entries: &[String]) -> Result<Stacktrace> {
let mut stacktrace = Stacktrace::new();

let re = Regex::new(r"\[Previous line repeated (\d+) more times\]").unwrap();
for entry in entries.iter() {
if entry.starts_with('[') {
let re = Regex::new(r"\[Previous line repeated (\d+) more times\]").unwrap();
let Some(rep) = re.captures(entry) else {
return Err(Error::Casr(format!(
"Couldn't parse stacktrace line: {entry}"
Expand Down

0 comments on commit dcbbee9

Please sign in to comment.