From b8e08dcdc4025c0dbdd2b94077d5b595c3b02e8b Mon Sep 17 00:00:00 2001 From: Pere Diaz Bou Date: Wed, 31 Jul 2024 18:07:22 +0200 Subject: [PATCH] core: more2 fix completion darwin io --- core/io/darwin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/io/darwin.rs b/core/io/darwin.rs index 0cce7bea2..ed8acfc3d 100644 --- a/core/io/darwin.rs +++ b/core/io/darwin.rs @@ -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) -> Result<()> { let file = self.file.borrow(); let result = { - let r = match &(*c) { + let r = match *c { Completion::Read(r) => r, Completion::Write(_) => unreachable!(), };