summaryrefslogtreecommitdiff
path: root/tests/monster_test.fbs
diff options
context:
space:
mode:
authorCasper <casperneo@uchicago.edu>2020-10-10 11:49:02 -0700
committerGitHub <noreply@github.com>2020-10-10 11:49:02 -0700
commit543c1bbeba18fc4e29c7b6163f0d56ea1c209926 (patch)
treedf7c5564fb9327dc6f5b324680feb516e6d073a8 /tests/monster_test.fbs
parentcb971eece803c13c8a0dda3841dc1ab830164253 (diff)
downloadflatbuffers-543c1bbeba18fc4e29c7b6163f0d56ea1c209926.tar.gz
flatbuffers-543c1bbeba18fc4e29c7b6163f0d56ea1c209926.tar.bz2
flatbuffers-543c1bbeba18fc4e29c7b6163f0d56ea1c209926.zip
Fixed rust nested flatbuffers for tables other than self (#6062)
* Fixed rust nested flatbuffers for tables other than self * replaced lifetimes * Use WrapInNameSpace and also update samples Co-authored-by: Casper Neo <cneo@google.com>
Diffstat (limited to 'tests/monster_test.fbs')
-rw-r--r--tests/monster_test.fbs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/monster_test.fbs b/tests/monster_test.fbs
index 094de8ca..68ffbe08 100644
--- a/tests/monster_test.fbs
+++ b/tests/monster_test.fbs
@@ -15,13 +15,13 @@ namespace MyGame.Example;
attribute "priority";
/// Composite components of Monster color.
-enum Color:ubyte (bit_flags) {
+enum Color:ubyte (bit_flags) {
Red = 0, // color Red = (1u << 0)
/// \brief color Green
/// Green is bit_flag with value (1u << 1)
- Green,
+ Green,
/// \brief color Blue (1u << 3)
- Blue = 3,
+ Blue = 3,
}
enum Race:byte {