mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-04 15:54:23 +01:00
clippy
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user