cargo fmt
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user