Skip to content

Commit

Permalink
unreal_mod_manager: fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
localcc committed Aug 31, 2023
1 parent 02b86af commit a35f9be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions unreal_mod_manager/src/background_work.rs
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ where
*background_thread_data.last_integration_time.lock() = Instant::now();

// update config file
write_config(&mut background_thread_data.data.lock());
write_config(&background_thread_data.data.lock());

Ok(warnings)
};
Expand Down Expand Up @@ -710,7 +710,7 @@ where
}
BackgroundThreadMessage::WriteConfig => {
// update config file
write_config(&mut background_thread_data.data.lock());
write_config(&background_thread_data.data.lock());
}
BackgroundThreadMessage::Exit => {
break;
Expand Down
2 changes: 1 addition & 1 deletion unreal_mod_manager/src/mod_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ pub(crate) fn load_config(data: &mut ModLoaderAppData) {
debug!("Loaded config");
}

pub(crate) fn write_config(data: &mut ModLoaderAppData) {
pub(crate) fn write_config(data: &ModLoaderAppData) {
let config_path = data.mods_path.as_ref().unwrap().join("modconfig.json");
let mut config = ModConfig {
selected_game_platform: data.selected_game_platform.clone(),
Expand Down
2 changes: 1 addition & 1 deletion unreal_mod_manager/src/mod_processing/index_file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ impl IndexFileModVersion {
}

pub(crate) fn gather_index_files(
data: &mut ModLoaderAppData,
data: &ModLoaderAppData,
filter: &[String],
) -> HashMap<String, DownloadInfo> {
//let mut index_files: HashMap<String, DownloadInfo> = HashMap::new();
Expand Down
2 changes: 1 addition & 1 deletion unreal_mod_manager/src/mod_processing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub(crate) fn process_modfiles(
// fetch index files

// gather index files from all the mods
let index_files_info = gather_index_files(&mut data_guard, &filter);
let index_files_info = gather_index_files(&data_guard, &filter);

// drop guard to allow UI to render while index files are being downloaded
drop(data_guard);
Expand Down

0 comments on commit a35f9be

Please sign in to comment.