Skip to content

Commit

Permalink
Merge pull request #623 from brson/indent
Browse files Browse the repository at this point in the history
Fix indentation
  • Loading branch information
brson authored Jul 29, 2016
2 parents a555eb2 + 9004124 commit 764a2a2
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/rustup-cli/rustup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -634,19 +634,19 @@ fn doc(cfg: &Cfg, m: &ArgMatches) -> Result<()> {
}

fn man(cfg: &Cfg, m: &ArgMatches) -> Result<()> {
let manpage = m.value_of("command").expect("");
let toolchain = try!(explicit_or_dir_toolchain(cfg, m));
let mut man_path = toolchain.path().to_path_buf();
man_path.push("share");
man_path.push("man");
man_path.push("man1");
man_path.push(manpage.to_owned() + ".1");
try!(utils::assert_is_file(&man_path));
Command::new("man")
.arg(man_path)
.status()
.expect("failed to open man page");
Ok(())
let manpage = m.value_of("command").expect("");
let toolchain = try!(explicit_or_dir_toolchain(cfg, m));
let mut man_path = toolchain.path().to_path_buf();
man_path.push("share");
man_path.push("man");
man_path.push("man1");
man_path.push(manpage.to_owned() + ".1");
try!(utils::assert_is_file(&man_path));
Command::new("man")
.arg(man_path)
.status()
.expect("failed to open man page");
Ok(())
}

fn self_uninstall(m: &ArgMatches) -> Result<()> {
Expand Down

0 comments on commit 764a2a2

Please sign in to comment.