This commit is contained in:
Dominik Werder
2021-05-14 16:45:08 +02:00
parent fd80616e24
commit d6357954c1
10 changed files with 104 additions and 51 deletions
+10
View File
@@ -12,6 +12,16 @@ pub struct LogItem {
msg: String,
}
impl LogItem {
pub fn quick(level: Level, msg: String) -> Self {
Self {
level,
msg,
node_ix: 42,
}
}
}
struct VisitLevel;
impl<'de> Visitor<'de> for VisitLevel {