Skip to content

Commit 0950502

Browse files
authored
Merge pull request #2051 from petrochenkov/dyn
Fix breakage from `dyn Trait`
2 parents 5054390 + 16a4783 commit 0950502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,7 @@ impl Rewrite for ast::TraitRef {
622622
impl Rewrite for ast::Ty {
623623
fn rewrite(&self, context: &RewriteContext, shape: Shape) -> Option<String> {
624624
match self.node {
625-
ast::TyKind::TraitObject(ref bounds) => bounds.rewrite(context, shape),
625+
ast::TyKind::TraitObject(ref bounds, ..) => bounds.rewrite(context, shape),
626626
ast::TyKind::Ptr(ref mt) => {
627627
let prefix = match mt.mutbl {
628628
Mutability::Mutable => "*mut ",

0 commit comments

Comments
 (0)