Skip to content

Commit

Permalink
Satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Sep 28, 2023
1 parent 161a84a commit 818a936
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/remark/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static HASH_REGEX: OnceLock<Regex> = OnceLock::new();
fn demangle(function: &str) -> String {
// Remove hash from the end of legacy dmangled named
let regex = HASH_REGEX.get_or_init(|| {
Regex::new(r#".*::[a-z0-9]{17}$"#).expect("Could not create regular expression")
Regex::new(r".*::[a-z0-9]{17}$").expect("Could not create regular expression")
});
let mut demangled = rustc_demangle::demangle(function).to_string();
if regex.find(&demangled).is_some() {
Expand Down

0 comments on commit 818a936

Please sign in to comment.