Change file.write to file.write_all

This commit is contained in:
Lachlan Sneff 2019-02-21 17:11:28 -08:00
parent 199cabd0af
commit f1b190743b

View File

@ -102,7 +102,7 @@ impl Cache for FileSystemCache {
let buffer = serialized_cache.serialize()?;
let mut file = File::create(new_path_buf)?;
file.write(&buffer)?;
file.write_all(&buffer)?;
Ok(key)
}