diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-26 11:09:03 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-26 11:09:03 +0200 |
commit | 9185c3de7984fa46b71a62b2902a707c9d4134c3 (patch) | |
tree | 2e0741c81d33bbf38676fcb859d819f2d0e86d67 /components/net/file_loader.rs | |
parent | a862479ca801c92bbb744eb769e59d177435fb63 (diff) | |
download | servo-9185c3de7984fa46b71a62b2902a707c9d4134c3.tar.gz servo-9185c3de7984fa46b71a62b2902a707c9d4134c3.zip |
Remove as_mut_slice() calls.
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); |