remove log crate (in favor of tracing)
All checks were successful
CI/CD Pipeline / test (push) Successful in 2m9s

This commit is contained in:
2024-02-27 15:24:39 +01:00
parent b4d464506c
commit 2f077a447c
10 changed files with 41 additions and 69 deletions

View File

@ -22,7 +22,6 @@ mod table;
use std::{fmt::Display, iter::Peekable};
use abschnitt::Abschnitt;
use log::trace;
use roxmltree::{Children, Node};
use crate::{
@ -117,7 +116,6 @@ impl Risdok {
pub(crate) fn from_str(xml: &str, builder: &mut law::Builder) -> Result<bool, Error> {
let doc = roxmltree::Document::parse(xml)?;
trace!("{doc:?}");
let root = doc.root();
assert_eq!(root.children().count(), 1);
Ok(Self::parse(root.children().next().unwrap(), builder))
@ -183,7 +181,6 @@ impl Listelem {
let text = c.next().unwrap().text().unwrap().into();
trace!("Parsed Listelem with text='{text}'");
Expect::empty(c.next());
Self { symbol, text }
@ -211,7 +208,6 @@ impl Ziffernliste {
}
pub(crate) fn parse(c: &mut Peekable<Children>) -> Self {
trace!("Parsing Ziffernliste...");
let n = c.next().unwrap();
assert!(Self::test(&n));