Skip to content

Commit

Permalink
vcf/record/samples/series/value/genotype: Fix clippy::manual_pattern_…
Browse files Browse the repository at this point in the history
…char_comparison warning

This was added in Rust 1.81.0 / clippy 0.1.81 (eeb90cd 2024-09-04).
  • Loading branch information
zaeleus committed Sep 5, 2024
1 parent 9872094 commit 7cc3b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion noodles-vcf/src/record/samples/series/value/genotype.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ impl<'a> crate::variant::record::samples::series::value::Genotype for Genotype<'
fn parse_first_allele(src: &mut &str) -> io::Result<(Option<usize>, Phasing)> {
let mut buf = next_allele(src);

let phasing = if buf.starts_with(|c| matches!(c, '|' | '/')) {
let phasing = if buf.starts_with(['|', '/']) {
let p = parse_phasing(&buf[..1])?;
buf = &buf[1..];
p
Expand Down

0 comments on commit 7cc3b0d

Please sign in to comment.