mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-15 00:00:18 +02:00
Merge 'v1.6.1' into 'master' (#721)
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user