Skip to content

Commit

Permalink
Merge pull request #210 from Tim-Zhang/allow-clippy-for-gencode
Browse files Browse the repository at this point in the history
Compiler: Ignore clippy warnings in gencode and release ttrpc-compiler:v0.6.2
  • Loading branch information
teawater authored Sep 15, 2023
2 parents a205575 + f4bac5b commit 6fe7d39
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion compiler/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ttrpc-compiler"
version = "0.6.1"
version = "0.6.2"
edition = "2018"
authors = ["The AntFin Kata Team <[email protected]>"]
license = "Apache-2.0"
Expand Down
6 changes: 2 additions & 4 deletions compiler/src/codegen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -639,12 +639,9 @@ fn write_generated_common(w: &mut CodeWriter) {
w.write_line("// @generated");

w.write_line("");
w.comment("https://github.com/Manishearth/rust-clippy/issues/702");
w.write_line("#![cfg_attr(rustfmt, rustfmt_skip)]");
w.write_line("#![allow(unknown_lints)]");
w.write_line("#![allow(clipto_camel_casepy)]");
w.write_line("");
w.write_line("#![cfg_attr(rustfmt, rustfmt_skip)]");
w.write_line("");
w.write_line("#![allow(box_pointers)]");
w.write_line("#![allow(dead_code)]");
w.write_line("#![allow(missing_docs)]");
Expand All @@ -655,6 +652,7 @@ fn write_generated_common(w: &mut CodeWriter) {
w.write_line("#![allow(unsafe_code)]");
w.write_line("#![allow(unused_imports)]");
w.write_line("#![allow(unused_results)]");
w.write_line("#![allow(clippy::all)]");
}

fn gen_file(
Expand Down

0 comments on commit 6fe7d39

Please sign in to comment.