Skip to content

Commit

Permalink
Set #![allow(nonstandard_style)] at the top level of our codegen crates.
Browse files Browse the repository at this point in the history
Right now we generally hit warnings only in cases where someone used non-style-conformant names in their .proto, but warnings on rs codegen aren't the greatest way to surface those and it results in a lot of spam on our tests that intentionally violate the style guide.

PiperOrigin-RevId: 713742680
  • Loading branch information
protobuf-github-bot authored and copybara-github committed Jan 9, 2025
1 parent fd2ce71 commit f75af38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/google/protobuf/compiler/rust/generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ void EmitEntryPointRsFile(GeneratorContext* generator_context,
{"mod_name", RustInternalModuleName(*file)}},
R"rs(
#[path="$file_path$"]
#[allow(non_snake_case)]
#[allow(nonstandard_style)]
pub mod internal_do_not_use_$mod_name$;
#[allow(unused_imports)]
#[allow(unused_imports, nonstandard_style)]
pub use internal_do_not_use_$mod_name$::*;
)rs");
}
Expand Down

0 comments on commit f75af38

Please sign in to comment.