Skip to content

Commit

Permalink
Rustfmt and adjust capitalization
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Mar 11, 2020
1 parent ec88ffa commit 74608c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/librustc_target/abi/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74608c7

Please sign in to comment.