Do not forbid newlines in headers and trailers

This commit is contained in:
Anthony Ramine 2017-11-27 15:22:52 +01:00 committed by Ryan Hunt
parent cc19d3c419
commit 098e8f0e76
2 changed files with 1 additions and 3 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "cbindgen"
version = "0.3.0"
version = "0.3.1"
authors = ["Jeff Muizelaar <jmuizelaar@mozilla.com>",
"Kartikaya Gupta <kats@mozilla.com>",
"Ryan Hunt <rhunt@eqrion.net>"]

View File

@ -43,8 +43,6 @@ impl<'a, 'b, F: Write> Write for InnerWriter<'a, 'b, F> {
writer.line_length += writer.spaces();
}
debug_assert!(!buf.contains(&b'\n'));
let written = writer.out.write(buf)?;
writer.line_length += written;
writer.max_line_length = cmp::max(writer.max_line_length, writer.line_length);