summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/warp/src/cache.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/warp/src/cache.rs b/plugins/warp/src/cache.rs
index 652ddc39..f39bceb2 100644
--- a/plugins/warp/src/cache.rs
+++ b/plugins/warp/src/cache.rs
@@ -26,6 +26,8 @@ pub static TYPE_REF_CACHE: OnceLock<DashMap<ViewID, TypeRefCache>> = OnceLock::n
pub fn register_cache_destructor() {
pub static mut CACHE_DESTRUCTOR: CacheDestructor = CacheDestructor;
+ #[allow(static_mut_refs)]
+ // SAFETY: This can be done as the backing data is an opaque ZST.
unsafe { CACHE_DESTRUCTOR.register() };
}