Skip to content

Commit

Permalink
Allow clippy::suspicious_else_formatting in generated valence_entity …
Browse files Browse the repository at this point in the history
…source file (#418)

# Objective

- Remove all of the useless clippy warnings from`valence_entity`
build.rs generated file.


![Screenshot_20230718_133009](https://github.com/valence-rs/valence/assets/25486263/25a01c7e-5847-4131-bb33-106103f8babd)

# Solution

- `#[allow(clippy::suspicious_else_formatting)]`
  • Loading branch information
PonasKovas authored Jul 18, 2023
1 parent 764543a commit 11eecb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/valence_entity/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ fn build() -> anyhow::Result<TokenStream> {

systems.extend([quote! {
#[allow(clippy::needless_borrow)]
#[allow(clippy::suspicious_else_formatting)]
fn #system_name_ident(
mut query: Query<(&#component_path, &mut TrackedData), Changed<#component_path>>
) {
Expand Down

0 comments on commit 11eecb8

Please sign in to comment.