From f1b190743bcad7331d4fdfe9aaf12800d2eac096 Mon Sep 17 00:00:00 2001 From: Lachlan Sneff Date: Thu, 21 Feb 2019 17:11:28 -0800 Subject: [PATCH] Change file.write to file.write_all --- lib/runtime/src/cache.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runtime/src/cache.rs b/lib/runtime/src/cache.rs index 50507d80236..09a93356bb4 100644 --- a/lib/runtime/src/cache.rs +++ b/lib/runtime/src/cache.rs @@ -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) }