Skip to content
Snippets Groups Projects

Optimization for miranda

Merged rarbore2 requested to merge miranda_opt into main
1 file
+ 9
2
Compare changes
  • Side-by-side
  • Inline
+ 9
2
@@ -44,10 +44,17 @@ pub fn xdot_module(
file.write_all(contents.as_bytes())
.expect("PANIC: Unable to write output file contents.");
println!("Graphviz written to: {}", tmp_path.display());
Command::new("xdot")
let mut xdot_process = Command::new("xdot")
.args([&tmp_path])
.output()
.spawn()
.expect("PANIC: Couldn't execute xdot. Is xdot installed?");
assert!(
xdot_process
.wait()
.map(|status| status.success())
.unwrap_or(false),
"PANIC: Xdot failed to execute."
)
}
/*
Loading