fmt+clippy

This commit is contained in:
Anton-4 2022-02-21 16:51:54 +01:00
parent cd2b83c503
commit 272e6f9ca0
No known key found for this signature in database
GPG key ID: C954D6E0F9C0ABFD
15 changed files with 155 additions and 283 deletions

View file

@ -469,10 +469,7 @@ pub fn join_mark_nodes_commas(
mark_nodes.into_iter().interleave(join_nodes).collect()
}
pub fn mark_nodes_to_string(
markup_node_ids: &[MarkNodeId],
mark_node_pool: &SlowPool,
) -> String {
pub fn mark_nodes_to_string(markup_node_ids: &[MarkNodeId], mark_node_pool: &SlowPool) -> String {
let mut all_code_string = String::new();
for mark_node_id in markup_node_ids.iter() {
@ -482,7 +479,11 @@ pub fn mark_nodes_to_string(
all_code_string
}
pub fn node_to_string_w_children(node_id: MarkNodeId, str_buffer: &mut String, mark_node_pool: &SlowPool) {
pub fn node_to_string_w_children(
node_id: MarkNodeId,
str_buffer: &mut String,
mark_node_pool: &SlowPool,
) {
let node = mark_node_pool.get(node_id);
if node.is_nested() {