Skip to content

Commit f68a64e

Browse files
committed
Rust: allow clippy::let_and_return in generated code
1 parent 6fffdb9 commit f68a64e

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

rust/ast-generator/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ impl Translator<'_> {{
465465

466466
writeln!(
467467
buf,
468-
" pub(crate) fn emit_{}(&mut self, node: &ast::{}) -> Label<generated::{}> {{",
468+
" #[allow(clippy::let_and_return)] pub(crate) fn emit_{}(&mut self, node: &ast::{}) -> Label<generated::{}> {{",
469469
to_lower_snake_case(type_name),
470470
type_name,
471471
class_name

rust/extractor/src/translate/generated.rs

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)