mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
rustdoc: Cleanup a pattern match in external_generic_args()
This commit is contained in:
parent
913764dcef
commit
280fc2dcce
@ -122,9 +122,8 @@ fn external_generic_args(
|
|||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
if cx.tcx.fn_trait_kind_from_lang_item(did).is_some() {
|
if cx.tcx.fn_trait_kind_from_lang_item(did).is_some() {
|
||||||
assert!(ty_kind.is_some());
|
let inputs = match ty_kind.unwrap() {
|
||||||
let inputs = match ty_kind {
|
ty::Tuple(tys) => tys.iter().map(|t| t.expect_ty().clean(cx)).collect(),
|
||||||
Some(ty::Tuple(ref tys)) => tys.iter().map(|t| t.expect_ty().clean(cx)).collect(),
|
|
||||||
_ => return GenericArgs::AngleBracketed { args, bindings },
|
_ => return GenericArgs::AngleBracketed { args, bindings },
|
||||||
};
|
};
|
||||||
let output = None;
|
let output = None;
|
||||||
|
Loading…
Reference in New Issue
Block a user