diff options
author | Daniel <kingdread@gmx.de> | 2018-10-15 16:49:56 +0200 |
---|---|---|
committer | Daniel <kingdread@gmx.de> | 2018-10-15 16:49:56 +0200 |
commit | 46e99ad65d41a9f03bcefb6bc17b3fa00bca6b79 (patch) | |
tree | 7b0a26805036c0be22c693789de2971d22777fbe | |
parent | f5af4e51a3bb73ddeb9b916ff772a3ab0afb92b8 (diff) | |
download | raidgrep-46e99ad65d41a9f03bcefb6bc17b3fa00bca6b79.tar.gz raidgrep-46e99ad65d41a9f03bcefb6bc17b3fa00bca6b79.tar.bz2 raidgrep-46e99ad65d41a9f03bcefb6bc17b3fa00bca6b79.zip |
formatting
-rw-r--r-- | src/main.rs | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/main.rs b/src/main.rs index 90deb5d..d026776 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,10 +4,10 @@ extern crate quick_error; extern crate chrono; extern crate colored; extern crate evtclib; +extern crate num_traits; extern crate rayon; extern crate regex; extern crate walkdir; -extern crate num_traits; use std::fs::File; use std::io::{self, BufReader}; @@ -15,10 +15,10 @@ use std::path::PathBuf; use std::str::FromStr; use chrono::NaiveDateTime; +use num_traits::cast::FromPrimitive; use regex::Regex; use structopt::StructOpt; use walkdir::{DirEntry, WalkDir}; -use num_traits::cast::FromPrimitive; use evtclib::{AgentKind, AgentName, EventKind, Log}; @@ -265,10 +265,15 @@ fn search_log(entry: &DirEntry, opt: &Opt) -> Result<Option<LogResult>, RuntimeE /// Extract human-readable information from the given log file. fn extract_info(entry: &DirEntry, log: &Log) -> LogResult { - let boss_name = get_encounter_name(log).unwrap_or_else(|| { - debug!("log file has unknown boss: {:?} (id: {:#x})", entry.path(), log.boss_id()); - "unknown" - }).into(); + let boss_name = get_encounter_name(log) + .unwrap_or_else(|| { + debug!( + "log file has unknown boss: {:?} (id: {:#x})", + entry.path(), + log.boss_id() + ); + "unknown" + }).into(); let mut players = log .players() @@ -395,6 +400,6 @@ fn get_profession_name(profession: u32, elite: u32) -> &'static str { _ => { debug!("Unknown spec (prof: {}, elite: {})", profession, elite); "Unknown" - }, + } } } |