about summary refs log tree commit diff
diff options
context:
space:
mode:
authorguanqun <guanqun.lu@gmail.com>2019-09-21 00:22:43 +0800
committerGitHub <noreply@github.com>2019-09-21 00:22:43 +0800
commitc3140bae633b265657c0094f6df6edf630d1d917 (patch)
tree51b53360ab6665cc28e1a0e21d2d4cbc7054b5d5
parent9ad1e7c46cf690b7ec6953b142430d21ca2d8799 (diff)
downloadrust-c3140bae633b265657c0094f6df6edf630d1d917.tar.gz
rust-c3140bae633b265657c0094f6df6edf630d1d917.zip
remove the extra comma after the match arm
This would follow the same coding style as all the other match arms in this file.
-rw-r--r--src/librustc_resolve/late/diagnostics.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_resolve/late/diagnostics.rs b/src/librustc_resolve/late/diagnostics.rs
index 0c86d8494fd..df8bd3fa75e 100644
--- a/src/librustc_resolve/late/diagnostics.rs
+++ b/src/librustc_resolve/late/diagnostics.rs
@@ -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() {