roezio/config: Remove custom Debug impl
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
6bd09bae4a
commit
1dbb7b540e
1 changed files with 1 additions and 10 deletions
|
@ -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)?;
|
||||
|
|
Loading…
Reference in a new issue