Skip to content

Commit

Permalink
Merge pull request lalrpop#632 from Z-snails/no-clippy
Browse files Browse the repository at this point in the history
Add `#![allow(clippy::all)]` to generated files
  • Loading branch information
Marwes authored Oct 18, 2021
2 parents d09a143 + f2a3588 commit 39d797f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lalrpop/src/lr1/codegen/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ impl<'codegen, 'grammar, W: Write, C> CodeGenerator<'codegen, 'grammar, W, C> {
rust!(
self.out,
"#![allow(non_snake_case, non_camel_case_types, unused_mut, unused_variables, \
unused_imports, unused_parens)]"
unused_imports, unused_parens, clippy::all)]"
);
rust!(self.out, "");

Expand Down
2 changes: 1 addition & 1 deletion lalrpop/src/parser/lrgrammar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ extern crate alloc;

#[cfg_attr(rustfmt, rustfmt_skip)]
mod ___parse___Top {
#![allow(non_snake_case, non_camel_case_types, unused_mut, unused_variables, unused_imports, unused_parens)]
#![allow(non_snake_case, non_camel_case_types, unused_mut, unused_variables, unused_imports, unused_parens, clippy::all)]

use string_cache::DefaultAtom as Atom;
use grammar::parse_tree::*;
Expand Down

0 comments on commit 39d797f

Please sign in to comment.