This commit is contained in:
Ihor Andrianov
2025-07-09 00:02:05 +03:00
parent f81bfa3daf
commit 2d41791f3d

View File

@@ -132,7 +132,7 @@ impl Callbacks {
fn get(&self, fd: usize) -> Option<&CompletionCallback> {
if let Some(pos) = self.find_inline(fd) {
let (_, callback) = unsafe { self.inline_entries[pos].assume_init_ref() };
return Some(&callback);
return Some(callback);
} else if let Some(pos) = self.heap_entries.iter().position(|&(k, _)| k == fd) {
return Some(&self.heap_entries[pos].1);
}