diff options
Diffstat (limited to 'src/idl_gen_rust.cpp')
-rw-r--r-- | src/idl_gen_rust.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/idl_gen_rust.cpp b/src/idl_gen_rust.cpp index 3c23f2f9..fdf58e34 100644 --- a/src/idl_gen_rust.cpp +++ b/src/idl_gen_rust.cpp @@ -457,12 +457,12 @@ class RustGenerator : public BaseGenerator { // clang-format off static const char * const ctypename[] = { #define FLATBUFFERS_TD(ENUM, IDLTYPE, CTYPE, JTYPE, GTYPE, NTYPE, PTYPE, \ - RTYPE, KTYPE) \ - #RTYPE, - FLATBUFFERS_GEN_TYPES(FLATBUFFERS_TD) + RTYPE, ...) \ + #RTYPE, + FLATBUFFERS_GEN_TYPES(FLATBUFFERS_TD) #undef FLATBUFFERS_TD - // clang-format on }; + // clang-format on if (type.enum_def) { return WrapInNameSpace(*type.enum_def); } return ctypename[type.base_type]; @@ -476,15 +476,15 @@ class RustGenerator : public BaseGenerator { FLATBUFFERS_ASSERT(false && "precondition failed in GetEnumTypeForDecl"); } - static const char *ctypename[] = { // clang-format off + static const char *ctypename[] = { #define FLATBUFFERS_TD(ENUM, IDLTYPE, CTYPE, JTYPE, GTYPE, NTYPE, PTYPE, \ - RTYPE, KTYPE) \ - #RTYPE, - FLATBUFFERS_GEN_TYPES(FLATBUFFERS_TD) + RTYPE, ...) \ + #RTYPE, + FLATBUFFERS_GEN_TYPES(FLATBUFFERS_TD) #undef FLATBUFFERS_TD - // clang-format on }; + // clang-format on // Enums can be bools, but their Rust representation must be a u8, as used // in the repr attribute (#[repr(bool)] is an invalid attribute). |