From 2b800e2f90d1b1dcd62a3627b604fe752f1a2bb3 Mon Sep 17 00:00:00 2001 From: DustInDark Date: Sat, 25 Jun 2022 21:51:20 +0900 Subject: [PATCH] fixed clippy error --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 4ec8cbf9..4c7c684e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -737,7 +737,7 @@ impl App { self._repo_main_reset_hard(hayabusa_rule_repo.as_ref().unwrap())?; // case of failed fetching origin/main, git clone is not executed so network error has occurred possibly. prev_modified_rules = - self.get_updated_rules(&rules_path.to_str().unwrap(), &prev_modified_time); + self.get_updated_rules(rules_path.to_str().unwrap(), &prev_modified_time); prev_modified_time = fs::metadata(&rules_path).unwrap().modified().unwrap(); result = self.pull_repository(&hayabusa_rule_repo.unwrap()); } else { @@ -769,7 +769,7 @@ impl App { } if result.is_ok() { let updated_modified_rules = - self.get_updated_rules(&rules_path.to_str().unwrap(), &prev_modified_time); + self.get_updated_rules(rules_path.to_str().unwrap(), &prev_modified_time); result = self.print_diff_modified_rule_dates(prev_modified_rules, updated_modified_rules); }