File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -69,20 +69,20 @@ fn try_help(config: &Config) -> CargoResult<bool> {
69
69
} ;
70
70
71
71
if resolve_executable ( Path :: new ( "man" ) ) . is_ok ( ) {
72
- let man = match extract_man ( & subcommand, "1" ) {
72
+ let man = match extract_man ( subcommand, "1" ) {
73
73
Some ( man) => man,
74
74
None => return Ok ( false ) ,
75
75
} ;
76
- write_and_spawn ( & subcommand, & man, "man" ) ?;
76
+ write_and_spawn ( subcommand, & man, "man" ) ?;
77
77
} else {
78
- let txt = match extract_man ( & subcommand, "txt" ) {
78
+ let txt = match extract_man ( subcommand, "txt" ) {
79
79
Some ( txt) => txt,
80
80
None => return Ok ( false ) ,
81
81
} ;
82
82
if resolve_executable ( Path :: new ( "less" ) ) . is_ok ( ) {
83
- write_and_spawn ( & subcommand, & txt, "less" ) ?;
83
+ write_and_spawn ( subcommand, & txt, "less" ) ?;
84
84
} else if resolve_executable ( Path :: new ( "more" ) ) . is_ok ( ) {
85
- write_and_spawn ( & subcommand, & txt, "more" ) ?;
85
+ write_and_spawn ( subcommand, & txt, "more" ) ?;
86
86
} else {
87
87
drop ( std:: io:: stdout ( ) . write_all ( & txt) ) ;
88
88
}
You can’t perform that action at this time.
0 commit comments