Merge pull request #296 from ahmedcharles/rustfmt

Add rustfmt_skip attribute.
This commit is contained in:
Niko Matsakis 2018-01-30 09:06:32 -05:00 committed by GitHub
commit 308d908718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -178,6 +178,7 @@ impl<W:Write> RustWrite<W> {
}
pub fn write_module_attributes(&mut self, grammar: &Grammar) -> io::Result<()> {
rust!(self, "#![cfg_attr(rustfmt, rustfmt_skip)]");
for attribute in grammar.module_attributes.iter() {
rust!(self, "{}", attribute);
}