diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/filters.rs | 2 | ||||
| -rw-r--r-- | src/main.rs | 10 | 
2 files changed, 6 insertions, 6 deletions
| diff --git a/src/filters.rs b/src/filters.rs index c6df6e8..6980900 100644 --- a/src/filters.rs +++ b/src/filters.rs @@ -20,7 +20,7 @@ pub fn filter_name(log: &Log, opt: &Opt) -> bool {              _ => unreachable!(),          }      } -    return false; +    false  }  /// Do filtering based on the fight outcome. diff --git a/src/main.rs b/src/main.rs index c05a8b6..22d1ab4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -125,14 +125,14 @@ enum SearchField {  impl SearchField {      /// True if the state says that the account name should be searched.      #[inline] -    fn search_account(&self) -> bool { -        *self == SearchField::All || *self == SearchField::Account +    fn search_account(self) -> bool { +        self == SearchField::All || self == SearchField::Account      }      /// True if the state says that the character name should be searched.      #[inline] -    fn search_character(&self) -> bool { -        *self == SearchField::All || *self == SearchField::Character +    fn search_character(self) -> bool { +        self == SearchField::All || self == SearchField::Character      }  } @@ -332,7 +332,7 @@ fn extract_info(entry: &DirEntry, log: &Log) -> LogResult {      LogResult {          log_file: entry.path().to_path_buf(), -        time: NaiveDateTime::from_timestamp(get_start_timestamp(log) as i64, 0), +        time: NaiveDateTime::from_timestamp(i64::from(get_start_timestamp(log)), 0),          boss_name,          players,          outcome: get_fight_outcome(log), | 
