mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 01:58:16 +00:00
core: more2 fix completion darwin io
This commit is contained in:
parent
10da6a673d
commit
b8e08dcdc4
1 changed files with 2 additions and 2 deletions
|
@ -67,7 +67,7 @@ impl IO for DarwinIO {
|
|||
match cf {
|
||||
CompletionCallback::Read(ref file, ref c, pos) => {
|
||||
let mut file = file.borrow_mut();
|
||||
let r = match &(*c) {
|
||||
let r = match *c {
|
||||
Completion::Read(r) => r,
|
||||
Completion::Write(_) => unreachable!(),
|
||||
};
|
||||
|
@ -178,7 +178,7 @@ impl File for DarwinFile {
|
|||
fn pread(&self, pos: usize, c: Rc<Completion>) -> Result<()> {
|
||||
let file = self.file.borrow();
|
||||
let result = {
|
||||
let r = match &(*c) {
|
||||
let r = match *c {
|
||||
Completion::Read(r) => r,
|
||||
Completion::Write(_) => unreachable!(),
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue