1
0
Fork 0
firefox/third_party/rust/serde_bytes/tests/test_partialeq.rs
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

15 lines
313 B
Rust

#![allow(clippy::needless_pass_by_value)]
use serde_bytes::{ByteBuf, Bytes};
fn _bytes_eq_slice(bytes: &Bytes, slice: &[u8]) -> bool {
bytes == slice
}
fn _bytebuf_eq_vec(bytebuf: ByteBuf, vec: Vec<u8>) -> bool {
bytebuf == vec
}
fn _bytes_eq_bytestring(bytes: &Bytes) -> bool {
bytes == b"..."
}