summaryrefslogtreecommitdiff
path: root/tests/namespace_test/namespace_test2_generated.rs
diff options
context:
space:
mode:
authorKamil Rojewski <kamil.rojewski@gmail.com>2021-04-15 17:19:13 +0200
committerGitHub <noreply@github.com>2021-04-15 11:19:13 -0400
commitc012f29f915a97e493a7ed4d9898b61ba945694d (patch)
tree085cf5007a9b1b188379df5ce2e7d36bd646cdb7 /tests/namespace_test/namespace_test2_generated.rs
parentdf2df21ec1be2468106fed10c1533eacc1cf0d2e (diff)
downloadflatbuffers-c012f29f915a97e493a7ed4d9898b61ba945694d.tar.gz
flatbuffers-c012f29f915a97e493a7ed4d9898b61ba945694d.tar.bz2
flatbuffers-c012f29f915a97e493a7ed4d9898b61ba945694d.zip
silenced clippy warning (#6565)
Diffstat (limited to 'tests/namespace_test/namespace_test2_generated.rs')
-rw-r--r--tests/namespace_test/namespace_test2_generated.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/namespace_test/namespace_test2_generated.rs b/tests/namespace_test/namespace_test2_generated.rs
index f21eeeef..9878e2f4 100644
--- a/tests/namespace_test/namespace_test2_generated.rs
+++ b/tests/namespace_test/namespace_test2_generated.rs
@@ -92,6 +92,7 @@ impl flatbuffers::EndianScalar for UnionInNestedNS {
Self(b)
}
#[inline]
+ #[allow(clippy::wrong_self_convention)]
fn from_little_endian(self) -> Self {
let b = u8::from_le(self.0);
Self(b)
@@ -228,6 +229,7 @@ impl flatbuffers::EndianScalar for EnumInNestedNS {
Self(b)
}
#[inline]
+ #[allow(clippy::wrong_self_convention)]
fn from_little_endian(self) -> Self {
let b = i8::from_le(self.0);
Self(b)