Address review comments
This commit is contained in:
parent
79f2180928
commit
484936bbfc
1 changed files with 10 additions and 10 deletions
|
@ -282,18 +282,18 @@ crate fn print_where_clause<'a, 'tcx: 'a>(
|
||||||
match pred {
|
match pred {
|
||||||
clean::WherePredicate::BoundPredicate { ty, bounds, bound_params } => {
|
clean::WherePredicate::BoundPredicate { ty, bounds, bound_params } => {
|
||||||
let bounds = bounds;
|
let bounds = bounds;
|
||||||
let for_prefix = match bound_params.len() {
|
let for_prefix = if bound_params.is_empty() {
|
||||||
0 => String::new(),
|
String::new()
|
||||||
_ if f.alternate() => {
|
} else if f.alternate() {
|
||||||
format!(
|
format!(
|
||||||
"for<{:#}> ",
|
"for<{:#}> ",
|
||||||
comma_sep(bound_params.iter().map(|lt| lt.print()), true)
|
comma_sep(bound_params.iter().map(|lt| lt.print()), true)
|
||||||
)
|
)
|
||||||
}
|
} else {
|
||||||
_ => format!(
|
format!(
|
||||||
"for<{}> ",
|
"for<{}> ",
|
||||||
comma_sep(bound_params.iter().map(|lt| lt.print()), true)
|
comma_sep(bound_params.iter().map(|lt| lt.print()), true)
|
||||||
),
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
if f.alternate() {
|
if f.alternate() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue