summaryrefslogtreecommitdiff
path: root/src/bin/roadmap2dot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/roadmap2dot.rs')
-rw-r--r--src/bin/roadmap2dot.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bin/roadmap2dot.rs b/src/bin/roadmap2dot.rs
index 25cbc34..e361efb 100644
--- a/src/bin/roadmap2dot.rs
+++ b/src/bin/roadmap2dot.rs
@@ -12,22 +12,24 @@
//! crate will be as a library.
use roadmap::Roadmap;
-use structopt::StructOpt;
-use std::path::PathBuf;
use std::fs::File;
use std::io::Read;
+use std::path::PathBuf;
+use structopt::StructOpt;
const LABEL_WIDTH: usize = 30;
#[derive(Debug, StructOpt)]
-#[structopt(name = "roadmap2dot", about = "Create a dot graph of a roadmap in YAML")]
+#[structopt(
+ name = "roadmap2dot",
+ about = "Create a dot graph of a roadmap in YAML"
+)]
struct Opt {
// The input filename.
#[structopt(parse(from_os_str))]
filename: PathBuf,
}
-
fn main() -> Result<(), Box<dyn std::error::Error>> {
let opt = Opt::from_args();
let mut text = String::new();