diff options
Diffstat (limited to 'components/net/file_loader.rs')
-rw-r--r-- | components/net/file_loader.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/net/file_loader.rs b/components/net/file_loader.rs index c2a1d672bd7..9240a736862 100644 --- a/components/net/file_loader.rs +++ b/components/net/file_loader.rs @@ -23,7 +23,7 @@ enum ReadStatus { fn read_block(reader: &mut File) -> Result<ReadStatus, String> { let mut buf = vec![0; READ_SIZE]; - match reader.read(buf.as_mut_slice()) { + match reader.read(&mut buf) { Ok(0) => return Ok(ReadStatus::EOF), Ok(n) => { buf.truncate(n); |