pub fn decode(buf: &'_ [u8]) -> CalResult<Self> {
        Ok(parse::container_file(buf)
            .map_err(
                // This appears to be erroneously triggering here.
                #[allow(clippy::redundant_closure_for_method_calls)]
                |e| e.to_owned(),
            )
            .map_err(Report::from)?
            .1)
    }
/// Decode this container file from the buffer provided.
///
/// # Errors
///
/// This function will return an error (specifically, a [`nom::Err`] boxed
/// in an [`eyre::Report`][calypso_error::eyre::Report]) if the input fails
/// to parse.
Decode this container file from the buffer provided.
Decode this container file from the buffer provided .
pub fn decode(buf: &'_ [u8]) -> CalResult<Self> {
        Ok(parse::container_file(buf)
            .map_err(
                // This appears to be erroneously triggering here.
                #[allow(clippy::redundant_closure_for_method_calls)]
                |e| e.to_owned(),
            )
            .map_err(Report::from)?
            .1)
    }
pub fn decode ( buf : & ' _ [ u8 ] ) -> CalResult < Self > { Ok ( parse :: container_file ( buf ) . map_err ( // This appears to be erroneously triggering here. # [ allow ( clippy redundant_closure_for_method_calls ) ] | e | e . to_owned ( ) , ) . map_err ( Report :: from ) ? . 1 ) }
Decode this container file from the buffer provided.
Decode this container file from the buffer provided .
buf
&'_ [u8]
buf
&'_ [u8]
errors
This function will return an error (specifically, a [`nom::Err`] boxed
in an [`eyre::Report`][calypso_error::eyre::Report]) if the input fails
to parse.
This function will return an error ( specifically a [ ` nom :: Err ` ] boxed in an [ ` eyre :: Report ` ] [ calypso_error :: eyre :: Report ] ) if the input fails to parse .