• naure's avatar
    Rust: Fix lifetime in union _as_ accessors (#5140) · 034275c6
    naure authored
    * Fix lifetime in union _as_ accessors
    
    In the accessors for union field, the return value is implicitly taking the lifetime of &self.
    This is irrelevant and prevents usages of the returned value, because it is needlessly bound to the parent field lifetime.
    
    This patch makes the return value inherit the lifetime of the data, like other methods do.
    034275c6
Name
Last commit
Last update
..
clang-format.sh Loading commit data...
code_generators.cpp Loading commit data...
flatc.cpp Loading commit data...
flatc_main.cpp Loading commit data...
flathash.cpp Loading commit data...
idl_gen_cpp.cpp Loading commit data...
idl_gen_dart.cpp Loading commit data...
idl_gen_fbs.cpp Loading commit data...
idl_gen_general.cpp Loading commit data...
idl_gen_go.cpp Loading commit data...
idl_gen_grpc.cpp Loading commit data...
idl_gen_js_ts.cpp Loading commit data...
idl_gen_json_schema.cpp Loading commit data...
idl_gen_lobster.cpp Loading commit data...
idl_gen_lua.cpp Loading commit data...
idl_gen_php.cpp Loading commit data...
idl_gen_python.cpp Loading commit data...
idl_gen_rust.cpp Loading commit data...
idl_gen_text.cpp Loading commit data...
idl_parser.cpp Loading commit data...
reflection.cpp Loading commit data...
util.cpp Loading commit data...