Skip to content

Commit 07d88b2

Browse files
committed
fixes unsafe
1 parent 737045a commit 07d88b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/io/buffered/bufreader.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ impl<R: Read> Read for BufReader<R> {
290290

291291
// we can't skip unconditionally because of the large buffer case in read.
292292
unsafe fn initializer(&self) -> Initializer {
293-
unsafe { (*self).initializer() }
293+
unsafe { self.inner.initializer() }
294294
}
295295
}
296296

0 commit comments

Comments
 (0)