diff options
author | Kamil Rojewski <kamil.rojewski@gmail.com> | 2021-04-15 17:19:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 11:19:13 -0400 |
commit | c012f29f915a97e493a7ed4d9898b61ba945694d (patch) | |
tree | 085cf5007a9b1b188379df5ce2e7d36bd646cdb7 /src | |
parent | df2df21ec1be2468106fed10c1533eacc1cf0d2e (diff) | |
download | flatbuffers-c012f29f915a97e493a7ed4d9898b61ba945694d.tar.gz flatbuffers-c012f29f915a97e493a7ed4d9898b61ba945694d.tar.bz2 flatbuffers-c012f29f915a97e493a7ed4d9898b61ba945694d.zip |
silenced clippy warning (#6565)
Diffstat (limited to 'src')
-rw-r--r-- | src/idl_gen_rust.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/idl_gen_rust.cpp b/src/idl_gen_rust.cpp index 248e68c5..a1d01935 100644 --- a/src/idl_gen_rust.cpp +++ b/src/idl_gen_rust.cpp @@ -743,6 +743,7 @@ class RustGenerator : public BaseGenerator { code_ += " {{FROM_BASE}}"; code_ += " }"; code_ += " #[inline]"; + code_ += " #[allow(clippy::wrong_self_convention)]"; code_ += " fn from_little_endian(self) -> Self {"; code_ += " let b = {{BASE_TYPE}}::from_le({{INTO_BASE}});"; code_ += " {{FROM_BASE}}"; |