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

@@ -1,7 +1,6 @@
use super::rwyw::NonNullString;
use flexbuffers::*;
use quickcheck::{Arbitrary, Gen};
use serde::{Deserialize, Serialize};
use std::collections::BTreeMap;
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]

View File

@@ -364,7 +364,7 @@ fn test_object_api_reads_correctly() -> Result<(), &'static str>{
#[should_panic]
#[test]
fn builder_abort_with_greater_than_maximum_buffer_size() {
flatbuffers::FlatBufferBuilder::new_with_capacity(flatbuffers::FLATBUFFERS_MAX_BUFFER_SIZE+1);
flatbuffers::FlatBufferBuilder::with_capacity(flatbuffers::FLATBUFFERS_MAX_BUFFER_SIZE+1);
}
#[test]
@@ -2605,7 +2605,7 @@ mod byte_layouts {
#[test]
fn layout_03b_11xbyte_vector_matches_builder_size() {
let mut b = flatbuffers::FlatBufferBuilder::new_with_capacity(12);
let mut b = flatbuffers::FlatBufferBuilder::with_capacity(12);
b.start_vector::<u8>(8);
let mut gold = vec![0u8; 0];