Skip to content

Commit 6a33d42

Browse files
committed
add #[allow(clippy::suspicious_else_formatting)] in generated code in itest, since file can be generated as one big line.
1 parent a03ecc5 commit 6a33d42

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

itest/rust/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ fn generate_rust_methods(inputs: &[Input]) -> Vec<TokenStream> {
361361
.collect::<Vec<_>>();
362362

363363
let manual_methods = quote! {
364+
#[allow(clippy::suspicious_else_formatting)] // `quote!` might output whole file as one big line.
364365
#[func]
365366
fn check_last_notrace(last_method_name: String, expected_callconv: String) -> bool {
366367
let last = godot::private::trace::pop();

0 commit comments

Comments
 (0)