build: Silence overcautious warning

This commit is contained in:
Dorota Czaplejewicz
2023-01-15 11:51:53 +00:00
parent 8da59a6216
commit 20b5cac148

View File

@ -153,7 +153,7 @@ pub mod c {
// A bit dangerous: the Rc may be in use elsewhere // A bit dangerous: the Rc may be in use elsewhere
let used_rc = unsafe { Arc::from_raw(self.0) }; let used_rc = unsafe { Arc::from_raw(self.0) };
let rc = used_rc.clone(); let rc = used_rc.clone();
Arc::into_raw(used_rc); // prevent dropping the original reference let _ = Arc::into_raw(used_rc); // prevent dropping the original reference
rc rc
} }
} }