From 5890bab17660bd0a2b4fb33187d210282258c99b Mon Sep 17 00:00:00 2001 From: Jane Lusby Date: Mon, 11 Jul 2022 15:55:30 -0700 Subject: [PATCH] fix clippy warnings --- src/config.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index ed8f306..40a079c 100644 --- a/src/config.rs +++ b/src/config.rs @@ -207,7 +207,9 @@ impl<'a> fmt::Display for StyledFrame<'a> { let name = frame.name.as_deref().unwrap_or(""); let has_hash_suffix = name.len() > 19 && &name[name.len() - 19..name.len() - 16] == "::h" - && name[name.len() - 16..].chars().all(|x| x.is_digit(16)); + && name[name.len() - 16..] + .chars() + .all(|x| x.is_ascii_hexdigit()); let hash_suffix = if has_hash_suffix { &name[name.len() - 19..] @@ -924,7 +926,7 @@ fn print_panic_info(report: &PanicReport<'_>, f: &mut fmt::Formatter<'_>) -> fmt Ok(()) } -impl<'a, 'b> fmt::Display for PanicReport<'a> { +impl fmt::Display for PanicReport<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { print_panic_info(self, f) }