This commit is contained in:
Gav Wood 2016-02-09 16:19:12 +01:00
parent e987a492dc
commit 8be5340385
1 changed files with 3 additions and 3 deletions

View File

@ -58,7 +58,7 @@ pub enum Filth {
/// Read the whole contents of a file `name`.
pub fn contents(name: &str) -> Result<Bytes, UtilError> {
let mut file = try!(File::open(name));
let mut ret: Vec<u8> = Vec::new();
try!(file.read_to_end(&mut ret));
Ok(ret)
let mut ret: Vec<u8> = Vec::new();
try!(file.read_to_end(&mut ret));
Ok(ret)
}