Replace Display::fmt with write_char
This commit is contained in:
parent
f2794ce6c0
commit
0f0342949d
1 changed files with 1 additions and 1 deletions
|
|
@ -1545,7 +1545,7 @@ fn print_generic_arg(generic_arg: &clean::GenericArg, cx: &Context<'_>) -> impl
|
|||
clean::GenericArg::Lifetime(lt) => f.write_str(print_lifetime(lt)),
|
||||
clean::GenericArg::Type(ty) => print_type(ty, cx).fmt(f),
|
||||
clean::GenericArg::Const(ct) => print_constant_kind(ct, cx.tcx()).fmt(f),
|
||||
clean::GenericArg::Infer => Display::fmt("_", f),
|
||||
clean::GenericArg::Infer => f.write_char('_'),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue