diff --git a/derive/src/help_parser.rs b/derive/src/help_parser.rs index 3d9e5ae..16a0dba 100644 --- a/derive/src/help_parser.rs +++ b/derive/src/help_parser.rs @@ -71,7 +71,7 @@ pub fn parse_usage(content: &str) -> String { pub fn parse_section(section: &str, content: &str) -> Option { fn is_section_header(line: &str, section: &str) -> bool { line.strip_prefix("##") - .map_or(false, |l| l.trim().to_lowercase() == section) + .is_some_and(|l| l.trim().to_lowercase() == section) } let section = §ion.to_lowercase();