Skip to content

Commit 53b587d

Browse files
committed
WARP: Misc clippy lint
Add safety doc comment to explain why this is allowed
1 parent 095f86d commit 53b587d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

plugins/warp/src/cache.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ pub static TYPE_REF_CACHE: OnceLock<DashMap<ViewID, TypeRefCache>> = OnceLock::n
2626

2727
pub fn register_cache_destructor() {
2828
pub static mut CACHE_DESTRUCTOR: CacheDestructor = CacheDestructor;
29+
#[allow(static_mut_refs)]
30+
// SAFETY: This can be done as the backing data is an opaque ZST.
2931
unsafe { CACHE_DESTRUCTOR.register() };
3032
}
3133

0 commit comments

Comments
 (0)