1
0
Fork 0

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:
Robbert van der Helm 2023-04-05 16:11:09 +02:00
parent 3aa3f08f82
commit 95d7dabcee

View file

@ -398,7 +398,7 @@ pub fn derive_params(input: TokenStream) -> TokenStream {
for (field_name, data) in serialized {
match field_name.as_str() {
#(#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),
}
}