Skip to content

Commit

Permalink
Fix the type alias's where clause position according to the updated…
Browse files Browse the repository at this point in the history
… rust syntax (see rust issue #89122)
  • Loading branch information
wada314 committed Jan 4, 2023
1 parent e07d1bf commit 408ae4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,12 +307,12 @@ impl Printer {
self.word("type ");
self.ident(&item.ident);
self.generics(&item.generics);
self.where_clause_oneline(&item.generics.where_clause);
self.word("= ");
self.neverbreak();
self.ibox(-INDENT);
self.ty(&item.ty);
self.end();
self.where_clause_oneline(&item.generics.where_clause);
self.word(";");
self.end();
self.hardbreak();
Expand Down Expand Up @@ -728,12 +728,12 @@ impl Printer {
self.word("type ");
self.ident(&impl_item.ident);
self.generics(&impl_item.generics);
self.where_clause_oneline(&impl_item.generics.where_clause);
self.word("= ");
self.neverbreak();
self.ibox(-INDENT);
self.ty(&impl_item.ty);
self.end();
self.where_clause_oneline(&impl_item.generics.where_clause);
self.word(";");
self.end();
self.hardbreak();
Expand Down

0 comments on commit 408ae4d

Please sign in to comment.