about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Scherer <github35764891676564198441@oli-obk.de>2020-03-11 14:31:07 +0100
committerOliver Scherer <github35764891676564198441@oli-obk.de>2020-03-11 14:31:29 +0100
commit74608c7f206171cb72c020a03800b2d9035a35fa (patch)
treee0b3aab0aeed091cf415b50ca6a2d67904af28ac
parentec88ffa38cee51fa7290aa6c99d928ffe346ca6c (diff)
downloadrust-74608c7f206171cb72c020a03800b2d9035a35fa.tar.gz
rust-74608c7f206171cb72c020a03800b2d9035a35fa.zip
Rustfmt and adjust capitalization
-rw-r--r--src/librustc_target/abi/mod.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc_target/abi/mod.rs b/src/librustc_target/abi/mod.rs
index 681326b0f15..afa30e7e632 100644
--- a/src/librustc_target/abi/mod.rs
+++ b/src/librustc_target/abi/mod.rs
@@ -661,10 +661,9 @@ impl FieldPlacement {
     pub fn offset(&self, i: usize) -> Size {
         match *self {
             FieldPlacement::Union(count) => {
-                assert!(i < count,
-                        "Tried to access field {} of union with {} fields", i, count);
+                assert!(i < count, "tried to access field {} of union with {} fields", i, count);
                 Size::ZERO
-            },
+            }
             FieldPlacement::Array { stride, count } => {
                 let i = i as u64;
                 assert!(i < count);