From 93f9dd958ad995e36b502884e08e4a2386a8dba7 Mon Sep 17 00:00:00 2001 From: Gino Valente Date: Sat, 9 Sep 2023 12:34:17 -0700 Subject: [PATCH 1/2] Fix formatting --- bevy_proto_derive/src/schematic/field_attributes.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bevy_proto_derive/src/schematic/field_attributes.rs b/bevy_proto_derive/src/schematic/field_attributes.rs index 8da513f..83f55c9 100644 --- a/bevy_proto_derive/src/schematic/field_attributes.rs +++ b/bevy_proto_derive/src/schematic/field_attributes.rs @@ -275,7 +275,9 @@ impl<'a> FieldAttributesBuilder<'a> { ReplacementType::Asset(AssetConfig::default()), meta.path.span(), )?; - let ReplacementType::Asset(config) = &mut self.attrs.replacement_ty else {unreachable!()}; + let ReplacementType::Asset(config) = &mut self.attrs.replacement_ty else { + unreachable!() + }; config }; From 0f5f8f5ff895f115c11db6f21271b49c9401bcef Mon Sep 17 00:00:00 2001 From: Gino Valente Date: Sat, 9 Sep 2023 12:38:13 -0700 Subject: [PATCH 2/2] Fix clippy --- bevy_proto_backend/src/impls/macros.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bevy_proto_backend/src/impls/macros.rs b/bevy_proto_backend/src/impls/macros.rs index 38cb29a..72dc3e8 100644 --- a/bevy_proto_backend/src/impls/macros.rs +++ b/bevy_proto_backend/src/impls/macros.rs @@ -29,6 +29,7 @@ macro_rules! from { impl From for $real { fn from(value: Input) -> Self { + #[allow(clippy::redundant_closure_call)] $body(value) } } @@ -49,6 +50,7 @@ macro_rules! from_to { impl From for $mock { fn from(value: Input) -> Self { + #[allow(clippy::redundant_closure_call)] $body(value) } } @@ -59,6 +61,7 @@ macro_rules! from_to { impl From for $real { fn from(value: Input) -> Self { + #[allow(clippy::redundant_closure_call)] $body(value) } } @@ -78,6 +81,7 @@ macro_rules! from_to_input { input: Input, context: &mut $crate::schematics::SchematicContext, ) -> Self { + #[allow(clippy::redundant_closure_call)] $body(input, context) } } @@ -91,6 +95,7 @@ macro_rules! from_to_input { input: Input, context: &mut $crate::schematics::SchematicContext, ) -> Self { + #[allow(clippy::redundant_closure_call)] $body(input, context) } }