Skip to content

Commit

Permalink
remove the extra comma after the match arm
Browse files Browse the repository at this point in the history
This would follow the same coding style as all the other match arms in this file.
  • Loading branch information
guanqun committed Sep 20, 2019
1 parent 9ad1e7c commit c3140ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_resolve/late/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ impl<'a> LateResolutionVisitor<'a, '_> {
} else {
err.note("did you mean to use one of the enum's variants?");
}
},
}
(Res::Def(DefKind::Struct, def_id), _) if ns == ValueNS => {
if let Some((ctor_def, ctor_vis))
= self.r.struct_constructors.get(&def_id).cloned() {
Expand Down

0 comments on commit c3140ba

Please sign in to comment.