Rollup merge of #64632 - guanqun:patch-1, r=jonas-schievink

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:
Mazdak Farrokhzad 2019-09-21 16:01:31 +02:00 committed by GitHub
commit 176e216c8e
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() {