mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-02 04:04:19 +00:00
silenced clippy warning (#6565)
This commit is contained in:
@@ -96,6 +96,7 @@ impl flatbuffers::EndianScalar for Color {
|
||||
Self(b)
|
||||
}
|
||||
#[inline]
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn from_little_endian(self) -> Self {
|
||||
let b = i8::from_le(self.0);
|
||||
Self(b)
|
||||
@@ -180,6 +181,7 @@ impl flatbuffers::EndianScalar for Equipment {
|
||||
Self(b)
|
||||
}
|
||||
#[inline]
|
||||
#[allow(clippy::wrong_self_convention)]
|
||||
fn from_little_endian(self) -> Self {
|
||||
let b = u8::from_le(self.0);
|
||||
Self(b)
|
||||
|
||||
Reference in New Issue
Block a user