mirror of
https://codeberg.org/icewind/tf-log-parser.git
synced 2026-06-03 18:24:09 +02:00
bumb dependencies
This commit is contained in:
parent
30e243eb36
commit
540153be24
2 changed files with 6 additions and 6 deletions
|
|
@ -10,7 +10,7 @@ repository = "https://github.com/icewind1991/tf-log-parser"
|
|||
[dependencies]
|
||||
steamid-ng = "1"
|
||||
nom = "7"
|
||||
enum-iterator = "0.7"
|
||||
enum-iterator = "1.4"
|
||||
chrono = { version = "0.4", features = ["serde"] }
|
||||
thiserror = "1"
|
||||
serde = { version = "1", features = ["derive"] }
|
||||
|
|
@ -20,7 +20,7 @@ paste = "1"
|
|||
logos = { version = "0.12", git = "https://github.com/icewind1991/logos", branch = "chunk-const-generics" }
|
||||
|
||||
[dev-dependencies]
|
||||
criterion = "0.3"
|
||||
criterion = "0.4"
|
||||
iai = "0.1"
|
||||
|
||||
[[bench]]
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use crate::raw_event::{split_player_subject, RawSubject};
|
||||
use enum_iterator::IntoEnumIterator;
|
||||
use enum_iterator::{Sequence, all};
|
||||
use serde::ser::SerializeMap;
|
||||
use serde::{Serialize, Serializer};
|
||||
use std::cmp::Ordering;
|
||||
|
|
@ -52,7 +52,7 @@ impl FromStr for Team {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, IntoEnumIterator, Serialize)]
|
||||
#[derive(Debug, Copy, Clone, Eq, PartialEq, Ord, PartialOrd, Hash, Sequence, Serialize)]
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum Class {
|
||||
Scout,
|
||||
|
|
@ -146,7 +146,7 @@ where
|
|||
S: Serializer,
|
||||
{
|
||||
let mut map = serializer.serialize_map(None)?;
|
||||
for class in Class::into_enum_iter() {
|
||||
for class in all::<Class>() {
|
||||
let stats = &self[class];
|
||||
if stats != &T::default() {
|
||||
map.serialize_entry(&class, stats)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue