]> git.proxmox.com Git - pxar.git/commitdiff
cleanup
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 5 May 2020 09:52:39 +0000 (11:52 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 5 May 2020 09:55:08 +0000 (11:55 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/accessor.rs

index b63223fca61397a6b3021de4628a49f2c1d70193..b3c7585289a79a640d444402138c3771c9bd9292 100644 (file)
@@ -94,8 +94,7 @@ impl<'a> ReadAt for &(dyn ReadAt + 'a) {
         offset: u64,
     ) -> Poll<io::Result<usize>> {
         unsafe {
-            self.map_unchecked(|this| *this)
-                .poll_read_at(cx, buf, offset)
+            Pin::new_unchecked(&**self).poll_read_at(cx, buf, offset)
         }
     }
 }