Skip to content

Commit

Permalink
unreal_cpp_bootstrapper: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bananaturtlesandwich committed Apr 10, 2024
1 parent c719678 commit 471a7af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions unreal_cpp_bootstrapper/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ fn download(mod_loader_dir: &PathBuf) -> Result<(PathBuf, PathBuf), Box<dyn Erro
.write(true)
.read(true)
.create(true)
.truncate(true)
.open(&loader_file_path)?;
loader_asset.download(&mut loader_file)?;

let mut proxy_file = OpenOptions::new()
.write(true)
.read(true)
.create(true)
.truncate(true)
.open(&proxy_file_path)?;
proxy_asset.download(&mut proxy_file)?;

Expand Down
1 change: 1 addition & 0 deletions unreal_cpp_bootstrapper/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ pub fn bootstrap(
let mut file = OpenOptions::new()
.create(true)
.write(true)
.truncate(true)
.read(true)
.open(path)?;

Expand Down
1 change: 1 addition & 0 deletions unreal_mod_manager/src/game_platform_managers/proton.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ impl unreal_cpp_bootstrapper::CppLoaderInstallExtension<ModLoaderWarning> 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);
Expand Down

0 comments on commit 471a7af

Please sign in to comment.