aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorDaniel <kingdread@gmx.de>2018-10-15 17:39:31 +0200
committerDaniel <kingdread@gmx.de>2018-10-15 17:43:41 +0200
commit96c34a2a0e024211e406649eae52cceea1156af8 (patch)
tree48091c3b5e5b30f32d0e71deb3f7b442094b263b /src/main.rs
parentd50fdaa06f3509696d04cdd564ebb9b6265c46c4 (diff)
downloadraidgrep-96c34a2a0e024211e406649eae52cceea1156af8.tar.gz
raidgrep-96c34a2a0e024211e406649eae52cceea1156af8.tar.bz2
raidgrep-96c34a2a0e024211e406649eae52cceea1156af8.zip
clippy
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs10
1 files changed, 5 insertions, 5 deletions
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),