forked from BigfootDev/flatbuffers
[rust] Ran rustfmt against library code (#5389)
This commit is contained in:
committed by
Robert Winslow
parent
e304f8c115
commit
db972be264
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user