style: cargo fmt
This commit is contained in:
@@ -3,9 +3,7 @@ mod cli;
|
||||
use anyhow::{Result, bail};
|
||||
|
||||
use archlens_application::use_cases::{
|
||||
build_code_graph::BuildCodeGraph,
|
||||
check_freshness::CheckFreshness,
|
||||
diff_diagram::DiffDiagram,
|
||||
build_code_graph::BuildCodeGraph, check_freshness::CheckFreshness, diff_diagram::DiffDiagram,
|
||||
generate_diagram::GenerateDiagram,
|
||||
};
|
||||
use archlens_ascii::AsciiRenderer;
|
||||
@@ -96,7 +94,11 @@ pub fn run(args: Cli) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
fn write_diagram_output(output: &RenderOutput, output_path: Option<&str>, split: bool) -> Result<()> {
|
||||
fn write_diagram_output(
|
||||
output: &RenderOutput,
|
||||
output_path: Option<&str>,
|
||||
split: bool,
|
||||
) -> Result<()> {
|
||||
if split {
|
||||
let dir = std::path::PathBuf::from(output_path.unwrap_or("."));
|
||||
std::fs::create_dir_all(&dir)?;
|
||||
|
||||
Reference in New Issue
Block a user