feat(mremap): KEEP_OLD

Signed-off-by: Anhad Singh <andypython@protonmail.com>
Co-authored-by: @4lDO2
This commit is contained in:
Anhad Singh
2024-12-10 01:14:02 +11:00
parent 7af6dd1f88
commit 08231eb4df
2 changed files with 55 additions and 9 deletions
+5
View File
@@ -370,6 +370,11 @@ impl RaiiFrame {
pub fn get(&self) -> Frame {
self.inner
}
pub fn take(self) -> Frame {
let f = self.get();
core::mem::forget(self);
f
}
}
impl Drop for RaiiFrame {