Rustfmt and adjust capitalization

This commit is contained in:
Oliver Scherer 2020-03-11 14:31:07 +01:00
parent ec88ffa38c
commit 74608c7f20

View File

@ -661,10 +661,9 @@ pub fn count(&self) -> usize {
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);