From 5d7a18c50736be5122ddd689def7f70f4a40ac17 Mon Sep 17 00:00:00 2001 From: Fletcher Nichol Date: Fri, 29 Apr 2016 19:12:51 -0600 Subject: [PATCH] [rustfmt] Updates simply due to current rustfmt. Signed-off-by: Fletcher Nichol --- cli/src/main.rs | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/cli/src/main.rs b/cli/src/main.rs index efa91f2..b7690cb 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -1,4 +1,5 @@ -#[macro_use] extern crate clap; +#[macro_use] +extern crate clap; extern crate names; use clap::{App, Arg}; @@ -6,19 +7,17 @@ use names::{Generator, Name}; fn main() { let matches = App::new("names") - .version(&crate_version!()[..]) - .author("\nAuthor: Fletcher Nichol \n") - .about("A random name generator with results like `delirious-pail'.") - .arg(Arg::with_name("amount") - .help("Number of names to generate (default: 1)") - .index(1) - ) - .arg(Arg::with_name("number") - .short("n") - .long("number") - .help("Adds a random number to the name(s)") - ) - .get_matches(); + .version(&crate_version!()[..]) + .author("\nAuthor: Fletcher Nichol \n") + .about("A random name generator with results like `delirious-pail'.") + .arg(Arg::with_name("amount") + .help("Number of names to generate (default: 1)") + .index(1)) + .arg(Arg::with_name("number") + .short("n") + .long("number") + .help("Adds a random number to the name(s)")) + .get_matches(); let amount = value_t!(matches.value_of("amount"), usize).unwrap_or(1); let naming: Name = if matches.is_present("number") {