Function bytes::bytes_mut::_split_to_must_use

source ·
fn _split_to_must_use()
Expand description
use bytes::BytesMut;
#[deny(unused_must_use)]
{
    let mut b1 = BytesMut::from("hello world");
    b1.split_to(6);
}