aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
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),