From 1dbb7b540ef8e17533fa5b1a2360f809e4519ba8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Mon, 29 Aug 2022 11:03:51 +0200 Subject: [PATCH] roezio/config: Remove custom Debug impl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/config.rs | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/config.rs b/src/config.rs index 58c30dc7..4d0ec1c9 100644 --- a/src/config.rs +++ b/src/config.rs @@ -84,22 +84,13 @@ impl fmt::Display for ConfigValue { } } +#[derive(Debug)] struct ConfigParsed { section_found: bool, key_found: bool, offset: u64, } -impl fmt::Debug for ConfigParsed { - fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.debug_struct("ConfigParsed") - .field("section_found", &self.section_found) - .field("key_found", &self.key_found) - .field("offset", &self.offset) - .finish() - } -} - fn parse_section(i: &str) -> IResult<&str, &str> { let (i, (_, _, _, section, _)) = tuple((space0, tag("["), space0, take_until1("]"), space0))(i)?;