Skip to content

Commit

Permalink
Resolve clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Ortham committed Dec 24, 2022
1 parent c7190b9 commit 176f107
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/load_order/mutable.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub trait MutableLoadOrder: ReadableLoadOrder + ReadableLoadOrderBase + Sync {
}

fn find_plugins_in_dir(&self) -> Vec<String> {
let entries = match read_dir(&self.game_settings().plugins_directory()) {
let entries = match read_dir(self.game_settings().plugins_directory()) {
Ok(x) => x,
_ => return Vec::new(),
};
Expand Down
2 changes: 1 addition & 1 deletion src/load_order/timestamp_based.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl TimestampBasedLoadOrder {

let prelude = get_file_prelude(self.game_settings())?;

let file = File::create(&self.game_settings().active_plugins_file())?;
let file = File::create(self.game_settings().active_plugins_file())?;
let mut writer = BufWriter::new(file);
writer.write_all(&prelude)?;
for (index, plugin_name) in self.active_plugin_names().iter().enumerate() {
Expand Down
2 changes: 1 addition & 1 deletion src/plugin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ impl Plugin {
// WritableLoadOrder::save() could lead to libloadorder not setting all
// the timestamps it needs to and producing an incorrect load order.
set_file_times(
&self.data.path(),
self.data.path(),
FileTime::from_system_time(SystemTime::now()),
FileTime::from_system_time(time),
)?;
Expand Down

0 comments on commit 176f107

Please sign in to comment.