Tabs!
This commit is contained in:
parent
e987a492dc
commit
8be5340385
@ -58,7 +58,7 @@ pub enum Filth {
|
|||||||
/// Read the whole contents of a file `name`.
|
/// Read the whole contents of a file `name`.
|
||||||
pub fn contents(name: &str) -> Result<Bytes, UtilError> {
|
pub fn contents(name: &str) -> Result<Bytes, UtilError> {
|
||||||
let mut file = try!(File::open(name));
|
let mut file = try!(File::open(name));
|
||||||
let mut ret: Vec<u8> = Vec::new();
|
let mut ret: Vec<u8> = Vec::new();
|
||||||
try!(file.read_to_end(&mut ret));
|
try!(file.read_to_end(&mut ret));
|
||||||
Ok(ret)
|
Ok(ret)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user