Skip to content

Commit de67271

Browse files
committed
Add cargo bin path to post_install_msg_win and post_install_msg_unix
1 parent ce16927 commit de67271

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/rustup-cli/self_update.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ macro_rules! post_install_msg_unix {
112112
() => {
113113
r"# Rust is installed now. Great!
114114
115-
To get started you need Cargo's bin directory in your `PATH`
115+
To get started you need Cargo's bin directory ({cargo_home}/bin) in your `PATH`
116116
environment variable. Next time you log in this will be done
117117
automatically.
118118
@@ -125,7 +125,7 @@ macro_rules! post_install_msg_win {
125125
() => {
126126
r"# Rust is installed now. Great!
127127
128-
To get started you need Cargo's bin directory in your `PATH`
128+
To get started you need Cargo's bin directory ({cargo_home}\bin) in your `PATH`
129129
environment variable. Future applications will automatically have the
130130
correct environment, but you may need to restart your current shell.
131131
"
@@ -298,7 +298,8 @@ pub fn install(no_prompt: bool, verbose: bool,
298298
format!(post_install_msg_unix!(),
299299
cargo_home = cargo_home)
300300
} else {
301-
format!(post_install_msg_win!())
301+
format!(post_install_msg_win!(),
302+
cargo_home = cargo_home)
302303
}
303304
} else {
304305
if cfg!(unix) {

0 commit comments

Comments
 (0)