File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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) ;
You can’t perform that action at this time.
0 commit comments