bless format

This commit is contained in:
yukang
2025-10-09 01:29:16 +08:00
parent affaf532f9
commit 53c79f4523
2 changed files with 13 additions and 7 deletions

View File

@@ -386,9 +386,12 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
})
| hir::Node::AnonConst(..) = node
{
return std::iter::repeat_n("'static".to_owned(), num_params_to_take.saturating_sub(ret.len()))
.collect::<Vec<_>>()
.join(", ");
return std::iter::repeat_n(
"'static".to_owned(),
num_params_to_take.saturating_sub(ret.len()),
)
.collect::<Vec<_>>()
.join(", ");
}
let params = if let Some(generics) = node.generics() {