Skip to content

Commit

Permalink
chore: resolve clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanVonElectrum committed Nov 1, 2024
1 parent 2a6b6e6 commit 59d373c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clap_derive/src/utils/doc_comments.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,8 +139,8 @@ fn is_list_item(s: &str) -> bool {
}

let mut chars = s.chars();
chars.next().map_or(false, |c| c.is_digit(10))
&& chars.skip_while(|c| c.is_digit(10)).next() == Some('.')
chars.next().map(|c| c.is_ascii_digit()).unwrap_or(false)
&& chars.find(|c| !c.is_ascii_digit()) == Some('.')
}

fn merge_lines(lines: impl IntoIterator<Item = impl AsRef<str>>) -> String {
Expand Down

0 comments on commit 59d373c

Please sign in to comment.