Skip to content

Commit

Permalink
revert: removed new implementation on reactive types
Browse files Browse the repository at this point in the history
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
  • Loading branch information
arctic-hen7 committed Feb 15, 2023
1 parent dc8123c commit 60a60f0
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/perseus-macro/src/rx_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 60a60f0

Please sign in to comment.