Skip to content

Commit e7d3f24

Browse files
committed
fixes unsafe
1 parent 374c7ae commit e7d3f24

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
@@ -305,7 +305,7 @@ impl<R: Read> Read for BufReader<R> {
305305

306306
// we can't skip unconditionally because of the large buffer case in read.
307307
unsafe fn initializer(&self) -> Initializer {
308-
unsafe { (*self).initializer() }
308+
unsafe { self.inner.initializer() }
309309
}
310310
}
311311

0 commit comments

Comments
 (0)