Skip to content

Commit

Permalink
Merge pull request #54 from Icelk/dependabot/cargo/pulldown-cmark-0.11
Browse files Browse the repository at this point in the history
build(deps): update pulldown-cmark requirement from 0.10 to 0.11
  • Loading branch information
Icelk authored May 25, 2024
2 parents 6c0da78 + eb14af2 commit 1baf95f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion chute/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ required-features = ["bin"]

[dependencies]
colored = "2.0"
pulldown-cmark = { version = "0.10", default-features = false, features = ["simd", "html"] }
pulldown-cmark = { version = "0.11", default-features = false, features = ["simd", "html"] }
notify = "6"
unicode_categories = "0.1"
time = { version = "0.3", optional = true, features = ["formatting", "macros", "local-offset"] }
Expand Down
6 changes: 3 additions & 3 deletions chute/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,13 @@ fn process_inner<P: AsRef<Path>>(
skip: !syntax_highlighting,
};

let mut output = Vec::with_capacity(input.len() * 2);
let mut output = String::with_capacity(input.len() * 2);

// Write HTML from specified file to output file (buffered for performance)
html::write_html(&mut output, parser)?;
html::push_html(&mut output, parser);

// Write output
write_file.write_all(&output)?;
write_file.write_all(output.as_bytes())?;

// Writes footer
write_file.write_all(footer)?;
Expand Down

0 comments on commit 1baf95f

Please sign in to comment.