mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Move PersistentField and helpers to dedicated mod
As mentioned in the previous commit's breaking changes entry.
This commit is contained in:
@@ -354,9 +354,9 @@ pub fn derive_params(input: TokenStream) -> TokenStream {
|
||||
.map(|PersistentField { field, key }| {
|
||||
(
|
||||
quote! {
|
||||
match ::nih_plug::param::internals::PersistentField::map(
|
||||
match ::nih_plug::param::persist::PersistentField::map(
|
||||
&self.#field,
|
||||
::nih_plug::param::internals::serialize_field,
|
||||
::nih_plug::param::persist::serialize_field,
|
||||
) {
|
||||
Ok(data) => {
|
||||
serialized.insert(String::from(#key), data);
|
||||
@@ -372,9 +372,9 @@ pub fn derive_params(input: TokenStream) -> TokenStream {
|
||||
},
|
||||
quote! {
|
||||
#key => {
|
||||
match ::nih_plug::param::internals::deserialize_field(&data) {
|
||||
match ::nih_plug::param::persist::deserialize_field(&data) {
|
||||
Ok(deserialized) => {
|
||||
::nih_plug::param::internals::PersistentField::set(
|
||||
::nih_plug::param::persist::PersistentField::set(
|
||||
&self.#field,
|
||||
deserialized,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user