about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOli Scherer <github35764891676564198441@oli-obk.de>2021-03-12 13:46:39 +0000
committerOli Scherer <github35764891676564198441@oli-obk.de>2021-03-12 13:46:39 +0000
commit11ddd2251061bd84408c6e098588c41f4f51370b (patch)
tree35bdac8d79014841a78d0d6ac4af07e0f073d0c6
parentc51749af6e8b42540f0493c7be47df332686d64a (diff)
downloadrust-11ddd2251061bd84408c6e098588c41f4f51370b.tar.gz
rust-11ddd2251061bd84408c6e098588c41f4f51370b.zip
Run rustfmt
-rw-r--r--compiler/rustc_mir_build/src/build/expr/as_constant.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_mir_build/src/build/expr/as_constant.rs b/compiler/rustc_mir_build/src/build/expr/as_constant.rs
index c8f9993def3..57f56e2d092 100644
--- a/compiler/rustc_mir_build/src/build/expr/as_constant.rs
+++ b/compiler/rustc_mir_build/src/build/expr/as_constant.rs
@@ -24,7 +24,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
                 assert_eq!(literal.ty, ty);
                 Constant { span, user_ty, literal: literal.into() }
             }
-            ExprKind::StaticRef { literal, .. } => Constant { span, user_ty: None, literal: literal.into() },
+            ExprKind::StaticRef { literal, .. } => {
+                Constant { span, user_ty: None, literal: literal.into() }
+            }
             ExprKind::ConstBlock { value } => {
                 Constant { span: span, user_ty: None, literal: value.into() }
             }