From 7cc3b0dd511dc6623d665bc771a28d67c82be115 Mon Sep 17 00:00:00 2001 From: Michael Macias Date: Thu, 5 Sep 2024 11:49:25 -0500 Subject: [PATCH] vcf/record/samples/series/value/genotype: Fix clippy::manual_pattern_char_comparison warning This was added in Rust 1.81.0 / clippy 0.1.81 (eeb90cd 2024-09-04). --- noodles-vcf/src/record/samples/series/value/genotype.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/noodles-vcf/src/record/samples/series/value/genotype.rs b/noodles-vcf/src/record/samples/series/value/genotype.rs index 86ff83236..ad4f413f1 100644 --- a/noodles-vcf/src/record/samples/series/value/genotype.rs +++ b/noodles-vcf/src/record/samples/series/value/genotype.rs @@ -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, 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