Skip to content

Commit

Permalink
Merge pull request #283 from brson/newlines
Browse files Browse the repository at this point in the history
Use a consistent single blank line in install messages.
  • Loading branch information
brson committed Apr 7, 2016
2 parents 714b153 + 8b08e71 commit fc175c2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 5 additions & 6 deletions src/multirust-cli/self_update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ modifying the HKEY_CURRENT_USER/Environment/PATH registry key."

macro_rules! post_install_msg_unix {
() => {
r"
Rust is installed now. Great!
r"Rust is installed now. Great!
To get started you need Cargo's bin directory in your `PATH`
environment variable. Next time you log in this will be done
Expand All @@ -108,8 +107,7 @@ run `source {cargo_home}/env`.

macro_rules! post_install_msg_win {
() => {
r"
Rust is installed now. Great!
r"Rust is installed now. Great!
To get started you need Cargo's bin directory in your `PATH`
environment variable. Future applications will automatically have the
Expand All @@ -118,8 +116,7 @@ correct environment, but you may need to restart your current shell.

macro_rules! pre_uninstall_msg {
() => {
r"
Thanks for hacking in Rust!
r"Thanks for hacking in Rust!
This will uninstall all Rust toolchains and data, and remove
`{cargo_home}/bin` from your `PATH` environment variable.
Expand Down Expand Up @@ -307,6 +304,7 @@ fn maybe_install_rust(toolchain_str: &str, verbose: bool) -> Result<()> {
try!(common::show_channel_update(cfg, toolchain_str, Ok(status)));
} else {
info!("updating existing installation");
println!("");
}

Ok(())
Expand All @@ -320,6 +318,7 @@ pub fn uninstall(no_prompt: bool) -> Result<()> {
}

if !no_prompt {
println!("");
let ref msg = format!(pre_uninstall_msg!(),
cargo_home = try!(canonical_cargo_home()));
if !try!(confirm(msg, false)) {
Expand Down
3 changes: 2 additions & 1 deletion tests/cli-self-update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,8 @@ fn reinstall_exact() {
setup(&|config| {
expect_ok(config, &["rustup-setup", "-y"]);
expect_ok_ex(config, &["rustup-setup", "-y"],
r"",
r"
",
r"info: updating existing installation
"
);
Expand Down

0 comments on commit fc175c2

Please sign in to comment.