remove the extra comma after the match arm

This would follow the same coding style as all the other match arms in this file.
This commit is contained in:
guanqun 2019-09-21 00:22:43 +08:00 committed by GitHub
parent 9ad1e7c46c
commit c3140bae63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {