Skip to content

Commit

Permalink
Fix more clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MinerSebas committed Feb 8, 2024
1 parent 58a4d75 commit 706789e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/app_lints/insert_resource_with_default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use bevy::{
};

#[derive(Debug, Default, Resource)]
struct A;
struct A(u8);
#[derive(Debug, Default, Resource)]
struct B;
struct B(u8);

struct TestPlugin;

Expand All @@ -23,12 +23,12 @@ impl Plugin for TestPlugin {
fn main() {
App::new().insert_resource(A::default());
App::new().insert_resource(B::default());
App::new().insert_resource(A).insert_resource(B);
App::new().insert_resource(A(0)).insert_resource(B(0));
App::new()
.insert_resource(A::default())
.insert_resource(B::default());
App::new().insert_resource(A::default()).insert_resource(B);
App::new().insert_resource(A).insert_resource(B::default());
App::new().insert_resource(A::default()).insert_resource(B(0));
App::new().insert_resource(A(0)).insert_resource(B::default());

App::new().insert_non_send_resource(A::default());
App::new().insert_non_send_resource(B::default());
Expand Down

0 comments on commit 706789e

Please sign in to comment.