roezio/config: Remove custom Debug impl

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2022-08-29 11:03:51 +02:00
parent 6bd09bae4a
commit 1dbb7b540e

View file

@ -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)?;