summaryrefslogtreecommitdiffstats
path: root/third_party/rust/scroll/src/endian.rs
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/rust/scroll/src/endian.rs')
-rw-r--r--third_party/rust/scroll/src/endian.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/third_party/rust/scroll/src/endian.rs b/third_party/rust/scroll/src/endian.rs
index 06d7a1dc1c..7b83c348d5 100644
--- a/third_party/rust/scroll/src/endian.rs
+++ b/third_party/rust/scroll/src/endian.rs
@@ -43,9 +43,6 @@ impl Endian {
}
#[inline]
pub fn is_little(&self) -> bool {
- match *self {
- LE => true,
- _ => false,
- }
+ *self == LE
}
}