Try to defend better against unexpected shapes where possible

This commit is contained in:
Dominik Werder
2023-08-30 16:39:00 +02:00
parent ab9a4d69ec
commit 05a31fbad1
21 changed files with 452 additions and 191 deletions
+2 -2
View File
@@ -61,11 +61,11 @@ pub struct LogItem {
}
impl LogItem {
pub fn quick(level: Level, msg: String) -> Self {
pub fn from_node(node_ix: usize, level: Level, msg: String) -> Self {
Self {
node_ix: node_ix as _,
level,
msg,
node_ix: 42,
}
}
}