Rustfmt and adjust capitalization
This commit is contained in:
parent
ec88ffa38c
commit
74608c7f20
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user