@@ -27,14 +27,14 @@ impl Tool {
2727 ///
2828 /// The current implementation checks three places for an executable to use:
2929 /// 1) `$CARGO_HOME/bin/<executable_name>`
30- /// where $CARGO_HOME defaults to ~/.cargo (see <https://doc.rust-lang.org/cargo/guide/cargo-home.html>)
31- /// example: for cargo, this tries $CARGO_HOME/bin/cargo, or ~/.cargo/bin/cargo if $CARGO_HOME is unset.
32- /// It seems that this is a reasonable place to try for cargo, rustc, and rustup
30+ /// where $CARGO_HOME defaults to ~/.cargo (see <https://doc.rust-lang.org/cargo/guide/cargo-home.html>)
31+ /// example: for cargo, this tries $CARGO_HOME/bin/cargo, or ~/.cargo/bin/cargo if $CARGO_HOME is unset.
32+ /// It seems that this is a reasonable place to try for cargo, rustc, and rustup
3333 /// 2) Appropriate environment variable (erroring if this is set but not a usable executable)
34- /// example: for cargo, this checks $CARGO environment variable; for rustc, $RUSTC; etc
34+ /// example: for cargo, this checks $CARGO environment variable; for rustc, $RUSTC; etc
3535 /// 3) $PATH/`<executable_name>`
36- /// example: for cargo, this tries all paths in $PATH with appended `cargo`, returning the
37- /// first that exists
36+ /// example: for cargo, this tries all paths in $PATH with appended `cargo`, returning the
37+ /// first that exists
3838 /// 4) If all else fails, we just try to use the executable name directly
3939 pub fn prefer_proxy ( self ) -> Utf8PathBuf {
4040 invoke ( & [ cargo_proxy, lookup_as_env_var, lookup_in_path] , self . name ( ) )
@@ -44,14 +44,14 @@ impl Tool {
4444 ///
4545 /// The current implementation checks three places for an executable to use:
4646 /// 1) Appropriate environment variable (erroring if this is set but not a usable executable)
47- /// example: for cargo, this checks $CARGO environment variable; for rustc, $RUSTC; etc
47+ /// example: for cargo, this checks $CARGO environment variable; for rustc, $RUSTC; etc
4848 /// 2) $PATH/`<executable_name>`
49- /// example: for cargo, this tries all paths in $PATH with appended `cargo`, returning the
50- /// first that exists
49+ /// example: for cargo, this tries all paths in $PATH with appended `cargo`, returning the
50+ /// first that exists
5151 /// 3) `$CARGO_HOME/bin/<executable_name>`
52- /// where $CARGO_HOME defaults to ~/.cargo (see <https://doc.rust-lang.org/cargo/guide/cargo-home.html>)
53- /// example: for cargo, this tries $CARGO_HOME/bin/cargo, or ~/.cargo/bin/cargo if $CARGO_HOME is unset.
54- /// It seems that this is a reasonable place to try for cargo, rustc, and rustup
52+ /// where $CARGO_HOME defaults to ~/.cargo (see <https://doc.rust-lang.org/cargo/guide/cargo-home.html>)
53+ /// example: for cargo, this tries $CARGO_HOME/bin/cargo, or ~/.cargo/bin/cargo if $CARGO_HOME is unset.
54+ /// It seems that this is a reasonable place to try for cargo, rustc, and rustup
5555 /// 4) If all else fails, we just try to use the executable name directly
5656 pub fn path ( self ) -> Utf8PathBuf {
5757 invoke ( & [ lookup_as_env_var, lookup_in_path, cargo_proxy] , self . name ( ) )
0 commit comments