[lint] Update due to Rustfmt 0.9.0.

Signed-off-by: Fletcher Nichol <fnichol@nichol.ca>
This commit is contained in:
Fletcher Nichol 2017-11-08 13:17:35 -07:00
parent 2462b2d47d
commit 8f4b65acd9

View File

@ -6,13 +6,14 @@ use names::{Generator, Name};
fn main() { fn main() {
let (naming, amount) = { let (naming, amount) = {
let app = clap_app!(names => let app =
(version: &crate_version!()[..]) clap_app!(names =>
(author: "\nAuthor: Fletcher Nichol <fnichol@nichol.ca>\n") (version: &crate_version!()[..])
(about: "A random name generator with results like `delirious-pail'.") (author: "\nAuthor: Fletcher Nichol <fnichol@nichol.ca>\n")
(@setting ColoredHelp) (about: "A random name generator with results like `delirious-pail'.")
(@arg amount: "Number of names to generate (default: 1)") (@setting ColoredHelp)
(@arg number: -n --number "Adds a random number to the name(s)") (@arg amount: "Number of names to generate (default: 1)")
(@arg number: -n --number "Adds a random number to the name(s)")
); );
let matches = app.get_matches(); let matches = app.get_matches();
let amount = value_t!(matches.value_of("amount"), usize).unwrap_or(1); let amount = value_t!(matches.value_of("amount"), usize).unwrap_or(1);