From 135af996e421e58114ef967c926d02c712039197 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Wed, 20 Dec 2023 08:58:25 -0500 Subject: [PATCH] rust fmt --- src/sniffer.rs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sniffer.rs b/src/sniffer.rs index b4ed536..6a51559 100644 --- a/src/sniffer.rs +++ b/src/sniffer.rs @@ -204,9 +204,9 @@ impl Sniffer { } None => vec![b'\'', b'"', b'`'], }; - let (quote_chr, (quote_cnt, delim_guess)) = quote_guesses - .iter() - .try_fold((b'"', (0, b'\0')), |acc, &chr| -> Result<(u8, (usize, u8))> { + let (quote_chr, (quote_cnt, delim_guess)) = quote_guesses.iter().try_fold( + (b'"', (0, b'\0')), + |acc, &chr| -> Result<(u8, (usize, u8))> { let mut sample_reader = take_sample_from_start(reader, self.get_sample_size())?; if let Some((cnt, delim_chr)) = quote_count(&mut sample_reader, char::from(chr), self.delimiter)? @@ -219,7 +219,8 @@ impl Sniffer { } else { Ok(acc) } - })?; + }, + )?; if quote_cnt == 0 { self.quote = Some(Quote::None); } else {