mirror of
https://github.com/eigenein/wotbreplay-parser.git
synced 2026-10-23 19:29:48 +02:00
Fix: average_mmr may be optional
This commit is contained in:
1 parent
fa6ac70d21
commit
632f1781e7
4 files changed
+5
-5
No files matched your search
+3
-3
@@ -6,10 +6,10 @@ pub enum Error {
|
||||
ZipError(#[from] zip::result::ZipError),
|
||||
|
||||
#[error("Protocol Buffers error")]
|
||||
DecodeFailed(#[from] prost::DecodeError),
|
||||
ProtobufError(#[from] prost::DecodeError),
|
||||
|
||||
#[error("Pickle error")]
|
||||
UnpickleFailed(#[from] serde_pickle::Error),
|
||||
PickleError(#[from] serde_pickle::Error),
|
||||
|
||||
#[error("I/O error")]
|
||||
IoError(#[from] std::io::Error),
|
||||
@@ -19,7 +19,7 @@ pub enum Error {
|
||||
|
||||
#[cfg(feature = "meta")]
|
||||
#[error("JSON error")]
|
||||
JsonDecodeFailed(#[from] serde_json::Error),
|
||||
JsonError(#[from] serde_json::Error),
|
||||
|
||||
#[error("invalid magic: {0:#X}, expected: {1:#X}")]
|
||||
InvalidMagic(u32, u32),
|
||||
|
||||
@@ -23,7 +23,7 @@ pub struct Summary {
|
||||
pub camouflage_slot: u8,
|
||||
|
||||
#[serde(rename(deserialize = "avgMmr"))]
|
||||
pub average_mmr: Vec<f64>,
|
||||
pub average_mmr: Vec<Option<f64>>,
|
||||
|
||||
#[serde(rename(deserialize = "playerWaitTimes"))]
|
||||
pub player_wait_times: HashMap<u32, f64>,
|
||||
|
||||
Reference in new issue
Block a user