Do not forbid newlines in headers and trailers
This commit is contained in:
parent
cc19d3c419
commit
098e8f0e76
@ -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>"]
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user