1
Fork 0

rustdoc: Resugar async fn return type in clean, not html

This way it also happens for json output.

Fixes #101199
This commit is contained in:
Nixon Enraght-Moony 2022-08-30 15:29:41 +01:00
parent 0631ea5d73
commit 6099d17afe
5 changed files with 46 additions and 16 deletions

View file

@ -821,7 +821,7 @@ fn assoc_method(
href = href,
name = name,
generics = g.print(cx),
decl = d.full_print(header_len, indent, header.asyncness, cx),
decl = d.full_print(header_len, indent, cx),
notable_traits = notable_traits_decl(d, cx),
where_clause = print_where_clause(g, cx, indent, end_newline),
)