From 12e3b4c70b5ef23b2fdfc197296d483680e125f9 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 8 Feb 2019 14:49:43 +0300 Subject: reformat the world --- crates/ra_cli/src/main.rs | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'crates/ra_cli') diff --git a/crates/ra_cli/src/main.rs b/crates/ra_cli/src/main.rs index 6b5be27be..a4debeb48 100644 --- a/crates/ra_cli/src/main.rs +++ b/crates/ra_cli/src/main.rs @@ -13,18 +13,8 @@ fn main() -> Result<()> { .setting(clap::AppSettings::SubcommandRequiredElseHelp) .subcommand( SubCommand::with_name("render-test") - .arg( - Arg::with_name("line") - .long("--line") - .required(true) - .takes_value(true), - ) - .arg( - Arg::with_name("file") - .long("--file") - .required(true) - .takes_value(true), - ), + .arg(Arg::with_name("line").long("--line").required(true).takes_value(true)) + .arg(Arg::with_name("file").long("--file").required(true).takes_value(true)), ) .subcommand(SubCommand::with_name("parse").arg(Arg::with_name("no-dump").long("--no-dump"))) .subcommand(SubCommand::with_name("symbols")) @@ -108,8 +98,5 @@ fn selections(file: &SourceFile, start: u32, end: u32) -> String { .iter() .map(|r| (1 + u32::from(r.start()), 1 + u32::from(r.end()))) .map(|(s, e)| format!("({} {})", s, e)); - join(ranges) - .separator(" ") - .surround_with("(", ")") - .to_string() + join(ranges).separator(" ").surround_with("(", ")").to_string() } -- cgit v1.2.3