[rust] Ran rustfmt against library code (#5389)

This commit is contained in:
jean-airoldie
2019-07-09 16:41:51 -04:00
committed by Robert Winslow
parent e304f8c115
commit db972be264
8 changed files with 108 additions and 60 deletions

View File

@@ -34,10 +34,7 @@ impl<'a> PartialEq for VTable<'a> {
impl<'a> VTable<'a> {
pub fn init(buf: &'a [u8], loc: usize) -> Self {
VTable {
buf: buf,
loc: loc,
}
VTable { buf: buf, loc: loc }
}
pub fn num_fields(&self) -> usize {
(self.num_bytes() / SIZE_VOFFSET) - 2
@@ -72,7 +69,6 @@ impl<'a> VTable<'a> {
}
}
#[allow(dead_code)]
pub fn field_index_to_field_offset(field_id: VOffsetT) -> VOffsetT {
// Should correspond to what end_table() below builds up.