diff options
author | Eddie Linder <eddilinn@gmail.com> | 2021-04-16 18:15:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-16 11:15:59 -0400 |
commit | da3bb64ef6c8410fbe05a80523d60735e6f50833 (patch) | |
tree | b4b8cb429e59c8dfe3821fc3f533b0e1afe46ccc /tests/namespace_test/namespace_test2_generated.rs | |
parent | 151900ba9645253fa8e1f780b5446d32fc30c4a5 (diff) | |
download | flatbuffers-da3bb64ef6c8410fbe05a80523d60735e6f50833.tar.gz flatbuffers-da3bb64ef6c8410fbe05a80523d60735e6f50833.tar.bz2 flatbuffers-da3bb64ef6c8410fbe05a80523d60735e6f50833.zip |
[Rust] Add support for fixed size arrays (#6548)
* Add support for fixed size arrays
* clang-format
* Update rust image to 1.51 to support const generics
* Handle correctly big endian
* Add fuzz tests and clean code
* Add struct fuzz test and optimize struct arrays for api
* Bump flatbuffers crate version
Diffstat (limited to 'tests/namespace_test/namespace_test2_generated.rs')
-rw-r--r-- | tests/namespace_test/namespace_test2_generated.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/namespace_test/namespace_test2_generated.rs b/tests/namespace_test/namespace_test2_generated.rs index 9878e2f4..d9391861 100644 --- a/tests/namespace_test/namespace_test2_generated.rs +++ b/tests/namespace_test/namespace_test2_generated.rs @@ -6,7 +6,7 @@ use std::mem; use std::cmp::Ordering; extern crate flatbuffers; -use self::flatbuffers::EndianScalar; +use self::flatbuffers::{EndianScalar, Follow}; #[allow(unused_imports, dead_code)] pub mod namespace_a { @@ -15,7 +15,7 @@ pub mod namespace_a { use std::cmp::Ordering; extern crate flatbuffers; - use self::flatbuffers::EndianScalar; + use self::flatbuffers::{EndianScalar, Follow}; #[allow(unused_imports, dead_code)] pub mod namespace_b { @@ -23,7 +23,7 @@ pub mod namespace_b { use std::cmp::Ordering; extern crate flatbuffers; - use self::flatbuffers::EndianScalar; + use self::flatbuffers::{EndianScalar, Follow}; #[deprecated(since = "2.0.0", note = "Use associated constants instead. This will no longer be generated in 2021.")] pub const ENUM_MIN_UNION_IN_NESTED_NS: u8 = 0; @@ -312,7 +312,7 @@ impl<'a> flatbuffers::Verifiable for StructInNestedNS { v.in_buffer::<Self>(pos) } } -impl StructInNestedNS { +impl<'a> StructInNestedNS { #[allow(clippy::too_many_arguments)] pub fn new( a: i32, @@ -900,7 +900,7 @@ pub mod namespace_c { use std::cmp::Ordering; extern crate flatbuffers; - use self::flatbuffers::EndianScalar; + use self::flatbuffers::{EndianScalar, Follow}; pub enum TableInCOffset {} #[derive(Copy, Clone, PartialEq)] |