diff options
Diffstat (limited to 'src/idl_gen_rust.cpp')
-rw-r--r-- | src/idl_gen_rust.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/idl_gen_rust.cpp b/src/idl_gen_rust.cpp index 1ca6254a..48858bda 100644 --- a/src/idl_gen_rust.cpp +++ b/src/idl_gen_rust.cpp @@ -1263,7 +1263,7 @@ class RustGenerator : public BaseGenerator { GenComment(field.doc_comment, " "); code_ += " #[inline]"; - code_ += " pub fn {{FIELD_NAME}}(&'a self) -> {{RETURN_TYPE}} {"; + code_ += " pub fn {{FIELD_NAME}}(&self) -> {{RETURN_TYPE}} {"; code_ += " {{FUNC_BODY}}"; code_ += " }"; |