about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTheodore Luo Wang <wangtheo662@gmail.com>2021-09-04 22:38:39 -0400
committerTheodore Luo Wang <wangtheo662@gmail.com>2021-09-04 22:38:39 -0400
commit20eba43283d59849627042d67413d32e08ace0f1 (patch)
treeaa02fe452e7f89f091b43b4a53472b2985e32892
parent65eb7e516c798a9447dbfe1d02aeeb314d4fec54 (diff)
downloadrust-20eba43283d59849627042d67413d32e08ace0f1.tar.gz
rust-20eba43283d59849627042d67413d32e08ace0f1.zip
Fix formatting
-rw-r--r--compiler/rustc_ast/src/token.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_ast/src/token.rs b/compiler/rustc_ast/src/token.rs
index e467bd963bf..3a65ffe41ae 100644
--- a/compiler/rustc_ast/src/token.rs
+++ b/compiler/rustc_ast/src/token.rs
@@ -587,7 +587,10 @@ impl Token {
     }
 
     pub fn is_numeric_lit(&self) -> bool {
-        matches!(self.kind, Literal(Lit { kind: LitKind::Integer, ..}) | Literal(Lit { kind: LitKind::Float, ..}))
+        matches!(
+            self.kind,
+            Literal(Lit { kind: LitKind::Integer, .. }) | Literal(Lit { kind: LitKind::Float, .. })
+        )
     }
 
     /// Returns `true` if the token is a non-raw identifier for which `pred` holds.