pub fn convert_to_codec_error(e: impl Into<Error>) -> CodecError