summaryrefslogtreecommitdiff
path: root/plugins/warp/src/cache.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2024-12-14 12:52:42 -0500
committerMason Reed <mason@vector35.com>2024-12-14 12:52:42 -0500
commit82cd67b9313f249e12ee4fd248a40db9dc6b4a07 (patch)
treecd55ff882cdb89b5766eaee571e21cfb2d40711f /plugins/warp/src/cache.rs
parent5239ad6e8345e691fde31fd9f513fcf200e942aa (diff)
WARP: Run `cargo fmt`
Diffstat (limited to 'plugins/warp/src/cache.rs')
-rw-r--r--plugins/warp/src/cache.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/warp/src/cache.rs b/plugins/warp/src/cache.rs
index f39bceb2..8111ca51 100644
--- a/plugins/warp/src/cache.rs
+++ b/plugins/warp/src/cache.rs
@@ -28,7 +28,9 @@ 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() };
+ unsafe {
+ CACHE_DESTRUCTOR.register()
+ };
}
pub fn cached_function_match<F>(function: &BNFunction, f: F) -> Option<Function>