glib: clippy: Use byte literals in byte array tests
@@ -244,9 +244,9 @@ mod tests {
ba.remove_range(1, 2);
ba.sort(|a, b| a.cmp(b));
unsafe { ba.set_size(3) };
- assert_eq!(ba, "aab".as_bytes());
+ assert_eq!(ba, b"aab" as &[u8]);
let abc: &[u8] = b"abc";
- assert_eq!(ByteArray::from(abc), "abc".as_bytes());
+ assert_eq!(ByteArray::from(abc), b"abc" as &[u8]);
}
#[test]
