Skip to content

Commit

Permalink
Fix clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
mstange committed Jan 19, 2025
1 parent 1cb135d commit c747efc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samply-symbols/src/demangle_ocaml.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pub fn demangle(name: &str) -> Option<String> {
if let Some(name) = name.strip_prefix("caml") {
if name.chars().next().map_or(false, |c| !c.is_uppercase()) {
if name.chars().next().is_some_and(|c| !c.is_uppercase()) {
return None;
}

Expand Down

0 comments on commit c747efc

Please sign in to comment.