Skip to content

Commit 98b46a1

Browse files
committed
fixup
1 parent 633ef39 commit 98b46a1

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

mullvad-daemon/src/version_check.rs

+2-5
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,8 @@ impl UpdateContext {
403403
async move {
404404
log::debug!("Writing version check cache to {}", cache_path.display());
405405
let cached_app_version = CachedAppVersionInfo::from(last_app_version.to_owned());
406-
let mut buf =
407-
serde_json::to_vec_pretty(&cached_app_version).map_err(Error::Serialize)?;
408-
let mut read_buf: &[u8] = buf.as_mut();
409-
410-
tokio::fs::write(cache_path, &mut read_buf)
406+
let buf = serde_json::to_vec_pretty(&cached_app_version).map_err(Error::Serialize)?;
407+
tokio::fs::write(cache_path, buf)
411408
.await
412409
.map_err(Error::WriteVersionCache)
413410
}

0 commit comments

Comments
 (0)