mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-13 00:04:29 +00:00
bulk code format fix (#8707)
This commit is contained in:
@@ -38,19 +38,13 @@ impl<'a> VectorBuilder<'a> {
|
||||
#[inline]
|
||||
pub fn start_vector(&mut self) -> VectorBuilder {
|
||||
let start = Some(self.builder.values.len());
|
||||
VectorBuilder {
|
||||
builder: self.builder,
|
||||
start,
|
||||
}
|
||||
VectorBuilder { builder: self.builder, start }
|
||||
}
|
||||
/// Starts a nested map that will be pushed onto this vector when it is dropped.
|
||||
#[inline]
|
||||
pub fn start_map(&mut self) -> MapBuilder {
|
||||
let start = Some(self.builder.values.len());
|
||||
MapBuilder {
|
||||
builder: self.builder,
|
||||
start,
|
||||
}
|
||||
MapBuilder { builder: self.builder, start }
|
||||
}
|
||||
/// `end_vector` determines the type of the vector and writes it to the buffer.
|
||||
/// This will happen automatically if the VectorBuilder is dropped.
|
||||
|
||||
Reference in New Issue
Block a user