Skip to content

Commit bea915a

Browse files
committed
Rename variable
1 parent b2a41b6 commit bea915a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/cli/rustup_mode.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,12 +1028,12 @@ fn man(cfg: &Cfg, m: &ArgMatches<'_>) -> Result<()> {
10281028
let command = m.value_of("command").unwrap();
10291029

10301030
let toolchain = explicit_or_dir_toolchain(cfg, m)?;
1031-
let mut toolchain_manpath = toolchain.path().to_path_buf();
1032-
toolchain_manpath.push("share");
1033-
toolchain_manpath.push("man");
1034-
utils::assert_is_directory(&toolchain_manpath)?;
1031+
let mut toolchain = toolchain.path().to_path_buf();
1032+
toolchain.push("share");
1033+
toolchain.push("man");
1034+
utils::assert_is_directory(&toolchain)?;
10351035

1036-
let mut manpaths = std::ffi::OsString::from(toolchain_manpath);
1036+
let mut manpaths = std::ffi::OsString::from(toolchain);
10371037
manpaths.push(":"); // ends with a colon to prepend it to the default MANPATH list
10381038
if let Some(path) = std::env::var_os("MANPATH") {
10391039
manpaths.push(path);

0 commit comments

Comments
 (0)