Function bytes::bytes_mut::_split_off_must_use

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