Rustfmt and adjust capitalization
This commit is contained in:
parent
ec88ffa38c
commit
74608c7f20
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue