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!(), };