From 96c34a2a0e024211e406649eae52cceea1156af8 Mon Sep 17 00:00:00 2001 From: Daniel Date: Mon, 15 Oct 2018 17:39:31 +0200 Subject: clippy --- src/main.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/main.rs') 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), -- cgit v1.2.3