Skip to content

Commit

Permalink
Change file.write to file.write_all
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlansneff committed Feb 22, 2019
1 parent 199cabd commit f1b1907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit f1b1907

Please sign in to comment.