From f2563d4b5cbd542446ca98f9167a0ee49a6988a1 Mon Sep 17 00:00:00 2001 From: Evian-Zhang Date: Fri, 9 Aug 2024 16:30:48 +0800 Subject: [PATCH] Fix typo --- src/os/linux.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/os/linux.rs b/src/os/linux.rs index a00cab9..ac385b7 100644 --- a/src/os/linux.rs +++ b/src/os/linux.rs @@ -85,9 +85,7 @@ impl CodeManipulator for ArchCodeManipulator { if res == libc::MAP_FAILED { panic!("Failed to mremap."); } - let res = unsafe { - clear_cache::clear_cache(addr, addr.add(L)); - }; + let res = unsafe { clear_cache::clear_cache(addr, addr.add(L)) }; if !res { panic!("Failed to clear cache."); }