From 706789e23838603bfd9fee97d0f27098bce5b986 Mon Sep 17 00:00:00 2001 From: MinerSebas Date: Thu, 8 Feb 2024 16:11:57 +0100 Subject: [PATCH] Fix more clippy warnings --- ui/app_lints/insert_resource_with_default.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/app_lints/insert_resource_with_default.rs b/ui/app_lints/insert_resource_with_default.rs index f671f8a..dd44d5f 100644 --- a/ui/app_lints/insert_resource_with_default.rs +++ b/ui/app_lints/insert_resource_with_default.rs @@ -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; @@ -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());