1
0
mirror of https://github.com/rust-unofficial/awesome-rust.git synced 2024-12-12 19:18:26 +02:00

collect the footer Markdown events

This commit is contained in:
kud1ing 2016-12-10 21:49:04 +01:00
parent daae790834
commit d0d937e00a

View File

@ -115,11 +115,11 @@ fn parse_content(parser: &mut Parser, content: &mut ReadmeFileContent) -> Readme
ReadmeFileParsingState::Footer
}
fn parse_footer(parser: &mut Parser, content: &mut ReadmeFileContent) -> ReadmeFileParsingState {
fn parse_footer<'a>(parser: &mut Parser<'a>, content: &mut ReadmeFileContent<'a>) -> ReadmeFileParsingState {
// Collect the remaining Markdown events.
while let Some(event) = parser.next() {
// TODO: collect the events
//content.footer_markdown_events.push(event);
content.footer_markdown_events.push(event);
}
ReadmeFileParsingState::Finished