cargo fmt

This commit is contained in:
DustInDark
2022-06-09 01:11:20 +09:00
parent c3587bef9a
commit 7332a774be

View File

@@ -173,12 +173,16 @@ impl Message {
}
}
let suffix_match = SUFFIXREGEX.captures(&target_str);
let suffix:i64 = match suffix_match{
let suffix: i64 = match suffix_match {
Some(cap) => cap.get(1).map_or(-1, |a| a.as_str().parse().unwrap_or(-1)),
None => -1
None => -1,
};
if suffix >= 0 {
tmp_event_record = tmp_event_record.get("Data").unwrap().get(suffix as usize).unwrap_or(tmp_event_record);
tmp_event_record = tmp_event_record
.get("Data")
.unwrap()
.get(suffix as usize)
.unwrap_or(tmp_event_record);
}
let hash_value = get_serde_number_to_string(tmp_event_record);
if hash_value.is_some() {