Merge 'v1.6.1' into 'master' (#721)

This commit is contained in:
Alice Ryhl
2024-07-13 09:51:48 +02:00
4 changed files with 22 additions and 2 deletions
+9
View File
@@ -1173,6 +1173,15 @@ fn shared_is_unique() {
assert!(c.is_unique());
}
#[test]
fn mut_shared_is_unique() {
let mut b = BytesMut::from(LONG);
let c = b.split().freeze();
assert!(!c.is_unique());
drop(b);
assert!(c.is_unique());
}
#[test]
fn test_bytesmut_from_bytes_static() {
let bs = b"1b23exfcz3r";