From bba7064441919c9330c1afceb2428d29a88906e7 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sun, 23 Feb 2025 22:01:04 +0100 Subject: [PATCH] Fix future name clash warning --- CHANGELOG.md | 4 ++++ src/params/persist.rs | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 186e3842..416fc536 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,10 @@ state is to list breaking changes. that the remote controls exposed through `ClapPlugin::remote_controls()` now use the non-draft extension. +### Fixed + +- Fixed a warning about future name clashes when compiling `nih_plug`. + ## [2024-12-23] ### Added diff --git a/src/params/persist.rs b/src/params/persist.rs index 047f88eb..f4b5ff67 100644 --- a/src/params/persist.rs +++ b/src/params/persist.rs @@ -38,7 +38,7 @@ macro_rules! impl_persistent_arc { T: serde::Serialize + serde::Deserialize<'a> + Send + Sync, { fn set(&self, new_value: T) { - self.as_ref().set(new_value); + PersistentField::set(self.as_ref(), new_value); } fn map(&self, f: F) -> R where