style: cargo fmt
This commit is contained in:
@@ -97,7 +97,11 @@ fn render_module(graph: &CodeGraph) -> String {
|
||||
}
|
||||
|
||||
for (src, tgt) in graph.module_edges().keys() {
|
||||
lines.push(format!("{} -> {}", sanitize_identifier(src), sanitize_identifier(tgt)));
|
||||
lines.push(format!(
|
||||
"{} -> {}",
|
||||
sanitize_identifier(src),
|
||||
sanitize_identifier(tgt)
|
||||
));
|
||||
}
|
||||
|
||||
lines.join("\n")
|
||||
@@ -113,7 +117,11 @@ fn render_project(graph: &CodeGraph) -> String {
|
||||
let mod_id = sanitize_identifier(module);
|
||||
lines.push(format!("{mod_id}: {{"));
|
||||
for el in elements {
|
||||
lines.push(format!(" {}: {}", sanitize_identifier(el.name()), el.name()));
|
||||
lines.push(format!(
|
||||
" {}: {}",
|
||||
sanitize_identifier(el.name()),
|
||||
el.name()
|
||||
));
|
||||
}
|
||||
lines.push("}".to_string());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user