mirror of
https://github.com/robbert-vdh/nih-plug.git
synced 2026-07-01 02:36:54 +00:00
Downgrade unknown serialization fields to trace
Instead of being debug assertion failures. These are guaranteed to trigger when using persistent fields together with nested param structs.
This commit is contained in:
@@ -398,7 +398,7 @@ pub fn derive_params(input: TokenStream) -> TokenStream {
|
|||||||
for (field_name, data) in serialized {
|
for (field_name, data) in serialized {
|
||||||
match field_name.as_str() {
|
match field_name.as_str() {
|
||||||
#(#deserialize_fields_match_self_tokens)*
|
#(#deserialize_fields_match_self_tokens)*
|
||||||
_ => ::nih_plug::nih_debug_assert_failure!("Unknown serialized field name: {} (this may not be accurate)", field_name),
|
_ => ::nih_plug::nih_trace!("Unknown serialized field name: {} (this may not be accurate when using nested param structs)", field_name),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user