fix lints in rust tests (#6743)

Co-authored-by: Casper Neo <cneo@google.com>
This commit is contained in:
Casper
2021-07-19 18:47:20 -04:00
committed by GitHub
parent 016e6aa13f
commit 674a9f2aae
5 changed files with 13 additions and 9 deletions

View File

@@ -33,7 +33,7 @@ pub use monster_generated::my_game::sample::{Color, Equipment,
fn main() {
// Build up a serialized buffer algorithmically.
// Initialize it with a capacity of 1024 bytes.
let mut builder = flatbuffers::FlatBufferBuilder::new_with_capacity(1024);
let mut builder = flatbuffers::FlatBufferBuilder::with_capacity(1024);
// Serialize some weapons for the Monster: A 'sword' and an 'axe'.
let weapon_one_name = builder.create_string("Sword");