Skip to content

Commit

Permalink
✨ Allow pendantic clippy lints in generated files.
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGariepy committed Jun 22, 2022
1 parent efcdf01 commit 3996600
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bench/benches/cornucopia_benches/generated_async.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated with `cornucopia`. Do not modify.
#![allow(clippy::all)]
#![allow(clippy::all, clippy::pedantic)]
#![allow(unused_variables)]
#![allow(unused_imports)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion bench/benches/cornucopia_benches/generated_sync.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated with `cornucopia`. Do not modify.
#![allow(clippy::all)]
#![allow(clippy::all, clippy::pedantic)]
#![allow(unused_variables)]
#![allow(unused_imports)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion codegen_test/src/cornucopia_async.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated with `cornucopia`. Do not modify.
#![allow(clippy::all)]
#![allow(clippy::all, clippy::pedantic)]
#![allow(unused_variables)]
#![allow(unused_imports)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion codegen_test/src/cornucopia_sync.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated with `cornucopia`. Do not modify.
#![allow(clippy::all)]
#![allow(clippy::all, clippy::pedantic)]
#![allow(unused_variables)]
#![allow(unused_imports)]
#![allow(dead_code)]
Expand Down
1 change: 1 addition & 0 deletions examples/auto_build/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use cornucopia::CodegenSettings;
// In this example, we generate the module in our project, but
// we could also generate it elsewhere and embed the generated
// file with a `include_str` statement in your project.
#[allow(clippy::unnecessary_wraps, clippy::no_effect_underscore_binding)]
fn main() -> Result<(), std::io::Error> {
//! To enable the automatic builds, remove the starting underscore
//! from the variable names and uncomment the snippet below
Expand Down
2 changes: 1 addition & 1 deletion examples/auto_build/src/cornucopia.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated with `cornucopia`. Do not modify.
#![allow(clippy::all)]
#![allow(clippy::all, clippy::pedantic)]
#![allow(unused_variables)]
#![allow(unused_imports)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion examples/basic_async/src/cornucopia.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated with `cornucopia`. Do not modify.
#![allow(clippy::all)]
#![allow(clippy::all, clippy::pedantic)]
#![allow(unused_variables)]
#![allow(unused_imports)]
#![allow(dead_code)]
Expand Down
2 changes: 1 addition & 1 deletion examples/basic_sync/src/cornucopia.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// This file was generated with `cornucopia`. Do not modify.
#![allow(clippy::all)]
#![allow(clippy::all, clippy::pedantic)]
#![allow(unused_variables)]
#![allow(unused_imports)]
#![allow(dead_code)]
Expand Down

0 comments on commit 3996600

Please sign in to comment.