updates for clippy 1.62

This commit is contained in:
Folkert 2022-07-05 12:23:27 +02:00
parent 4523e90bc7
commit 9c856fd5ae
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
12 changed files with 75 additions and 56 deletions

View file

@ -1,4 +1,5 @@
use crate::markup::{mark_id_ast_id_map::MarkIdAstIdMap, nodes::MarkupNode};
use std::fmt::Write;
pub type MarkNodeId = usize;
@ -54,14 +55,16 @@ impl SlowPool {
child_str = format!("children: {:?}", node_children);
}
ret_str.push_str(&format!(
write!(
ret_str,
"{}: {} ({}) ast_id {:?} {}",
mark_node_id,
node.node_type_as_string(),
node.get_content(),
ast_node_id.parse::<usize>().unwrap(),
child_str
));
)
.unwrap();
}
ret_str