Skip to content

Commit

Permalink
Fix clippy::mixed_attributes_style lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rj00a committed Mar 9, 2024
1 parent 64f79de commit 4bf4c93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions benches/random_access.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ fn random_access_evenio(bencher: Bencher) {
}

#[divan::bench]
#[allow(non_snake_case)] // Can't add attributes to the generated `ComponentQueryItem`.
fn random_access_bevy(bencher: Bencher) {
#![allow(non_snake_case)] // Can't add attributes to the generated `ComponentQueryItem`.

use bevy_ecs::prelude::*;
use bevy_ecs::query::QueryData;
use bevy_ecs::schedule::ScheduleLabel;
Expand Down
3 changes: 1 addition & 2 deletions src/handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1365,9 +1365,8 @@ mod tests {
use crate::event::Events;

#[test]
#[allow(dead_code)]
fn derive_handler_param() {
#![allow(dead_code)]

#[derive(HandlerParam)]
struct UnitParam;

Expand Down
3 changes: 1 addition & 2 deletions src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -827,9 +827,8 @@ mod tests {
t!(t16, true, (Xor<(&A, &B), (&B, &C)>, &B));

#[test]
#[allow(dead_code)]
fn derived_query() {
#![allow(dead_code)]

#[derive(Query)]
struct UnitQuery;

Expand Down

0 comments on commit 4bf4c93

Please sign in to comment.