Skip to content

Instantly share code, notes, and snippets.

@danielbodart
Last active December 22, 2016 11:12
Show Gist options
  • Select an option

  • Save danielbodart/372762590f4e7268ae2a101dbaad0c2d to your computer and use it in GitHub Desktop.

Select an option

Save danielbodart/372762590f4e7268ae2a101dbaad0c2d to your computer and use it in GitHub Desktop.
pub fn message_body<'a>(slice: &'a [u8], headers:&Vec<(&str, String)>) -> IResult<&'a [u8], MessageBody<'a>> {
IResult::Done(slice, MessageBody::None)
}
apply!(message_body, &headers)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment