Use parse_target_triple in rustdoc
This commit is contained in:
parent
8260b8325c
commit
f22a80890a
2 changed files with 9 additions and 11 deletions
|
@ -1507,7 +1507,10 @@ fn collect_print_requests(
|
|||
prints
|
||||
}
|
||||
|
||||
fn parse_target_triple(matches: &getopts::Matches, error_format: ErrorOutputType) -> TargetTriple {
|
||||
pub fn parse_target_triple(
|
||||
matches: &getopts::Matches,
|
||||
error_format: ErrorOutputType,
|
||||
) -> TargetTriple {
|
||||
match matches.opt_str("target") {
|
||||
Some(target) if target.ends_with(".json") => {
|
||||
let path = Path::new(&target);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue