From 471a7af26eb65607a085ed8c09f0900040c02f86 Mon Sep 17 00:00:00 2001 From: spuds <71292624+bananaturtlesandwich@users.noreply.github.com> Date: Wed, 10 Apr 2024 23:07:50 +0100 Subject: [PATCH] unreal_cpp_bootstrapper: fix clippy warnings --- unreal_cpp_bootstrapper/build.rs | 2 ++ unreal_cpp_bootstrapper/src/lib.rs | 1 + unreal_mod_manager/src/game_platform_managers/proton.rs | 1 + 3 files changed, 4 insertions(+) diff --git a/unreal_cpp_bootstrapper/build.rs b/unreal_cpp_bootstrapper/build.rs index e8e82502..a8a06120 100644 --- a/unreal_cpp_bootstrapper/build.rs +++ b/unreal_cpp_bootstrapper/build.rs @@ -86,6 +86,7 @@ fn download(mod_loader_dir: &PathBuf) -> Result<(PathBuf, PathBuf), Box Result<(PathBuf, PathBuf), Box for Pr let file = std::fs::OpenOptions::new() .create(true) .write(true) + .truncate(true) .open(registry_path)?; let mut writer = std::io::BufWriter::new(file);