From 60a60f09b49c849bcf4ea50ab6e38679dd1c3efe Mon Sep 17 00:00:00 2001 From: arctic-hen7 Date: Thu, 16 Feb 2023 08:28:59 +1100 Subject: [PATCH] revert: removed `new` implementation on reactive types This causes function argument warnings with large structs, which are very common. Users should implement this manually if they need it. BREAKING CHANGE: implicit `new` method removed from intermediate reactive types --- packages/perseus-macro/src/rx_state.rs | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/packages/perseus-macro/src/rx_state.rs b/packages/perseus-macro/src/rx_state.rs index 6579913386..07441eb87c 100644 --- a/packages/perseus-macro/src/rx_state.rs +++ b/packages/perseus-macro/src/rx_state.rs @@ -186,18 +186,6 @@ pub fn make_rx_impl(input: ReactiveStateDeriveInput) -> TokenStream { #intermediate_fields } - impl #intermediate_ident - { - fn new(#old_types) -> #intermediate_ident - { - use ::perseus::state::MakeRx; - #intermediate_ident - { - #new_intermediate_field_makers - } - } - } - impl From<#intermediate_ident> for #ident { fn from(value: #intermediate_ident) -> #ident