diff options
author | Daniel <kingdread@gmx.de> | 2018-10-15 17:39:31 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2018-10-15 17:43:41 +0200 |
commit | 96c34a2a0e024211e406649eae52cceea1156af8 (patch) | |
tree | 48091c3b5e5b30f32d0e71deb3f7b442094b263b | |
parent | d50fdaa06f3509696d04cdd564ebb9b6265c46c4 (diff) | |
download | raidgrep-96c34a2a0e024211e406649eae52cceea1156af8.tar.gz raidgrep-96c34a2a0e024211e406649eae52cceea1156af8.tar.bz2 raidgrep-96c34a2a0e024211e406649eae52cceea1156af8.zip |
clippy
-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), |