Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Evian-Zhang committed Aug 9, 2024
1 parent 022a7f9 commit f2563d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/os/linux.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
Expand Down

0 comments on commit f2563d4

Please sign in to comment.