Removing obsolete clippy allow thingy.

This commit is contained in:
Paul Masurel
2022-02-01 11:54:01 +09:00
parent 2069e3e52b
commit 13a4473faa
2 changed files with 1 additions and 2 deletions

View File

@@ -440,7 +440,7 @@ mod tests {
bitset.serialize(&mut out).unwrap();
let bitset = ReadOnlyBitSet::open(OwnedBytes::new(out));
assert_eq!(bitset.len() as usize, 64 as usize);
assert_eq!(bitset.len() as usize, 64);
}
#[test]

View File

@@ -83,7 +83,6 @@ impl OwnedBytes {
/// Splits the right part of the `OwnedBytes` at the given offset.
///
/// `self` is truncated to `split_len`, left with the remaining bytes.
#[allow(clippy::return_self_not_must_use)]
pub fn split_off(&mut self, split_len: usize) -> OwnedBytes {
let right_box_stable_deref = self.box_stable_deref.clone();
let right_piece = OwnedBytes {