bug fix and bump tokio version

master
blank X 2 years ago
parent 0eb544a3e6
commit 64763e014f
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
  1. 6
      Cargo.lock
  2. 4
      Cargo.toml
  3. 1
      src/structs.rs

6
Cargo.lock generated

@ -202,7 +202,7 @@ dependencies = [
[[package]]
name = "hanimers"
version = "0.1.5"
version = "0.1.6"
dependencies = [
"clap",
"quick-xml",
@ -791,9 +791,9 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]]
name = "tokio"
version = "1.1.1"
version = "1.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6714d663090b6b0acb0fa85841c6d66233d150cdb2602c8f9b8abb03370beb3f"
checksum = "e8190d04c665ea9e6b6a0dc45523ade572c088d2e6566244c1122671dbf4ae3a"
dependencies = [
"autocfg",
"bytes",

@ -1,6 +1,6 @@
[package]
name = "hanimers"
version = "0.1.5"
version = "0.1.6"
authors = ["blank X <theblankx@protonmail.com>"]
edition = "2018"
@ -10,7 +10,7 @@ edition = "2018"
lto = true
[dependencies]
tokio = { version = "1.1", features = ["rt"] }
tokio = { version = "1.2", features = ["rt"] }
reqwest = "0.11"
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"

@ -192,6 +192,7 @@ where
// https://brokenco.de/2020/08/03/serde-deserialize-with-string.html
let mut to_return = String::new();
let mut reader = Reader::from_str(&value);
reader.check_end_names(false);
let mut buf = Vec::new();
loop {
match reader.read_event(&mut buf) {

Loading…
Cancel
Save