Skip to content

Commit

Permalink
map.next_key::<beef::lean::Cow<str>>()
Browse files Browse the repository at this point in the history
  • Loading branch information
ijl committed Jun 1, 2022
1 parent a4dcf08 commit 8166f8f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ unstable-simd = [
ahash = { version = "0.7", default_features = false }
arrayvec = { version = "0.7", default_features = false, features = ["std", "serde"] }
associative-cache = { version = "1" }
beef = { version = "0.5", default_features = false, features = ["impl_serde"] }
bytecount = { version = "^0.6.2", default_features = false, features = ["runtime-dispatch-simd"] }
chrono = { version = "0.4", default_features = false }
encoding_rs = { version = "0.8", default_features = false }
Expand Down
2 changes: 1 addition & 1 deletion src/deserialize/deserializer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ impl<'de> Visitor<'de> for JsonValue {
A: MapAccess<'de>,
{
let dict_ptr = ffi!(PyDict_New());
while let Some(key) = map.next_key::<Cow<str>>()? {
while let Some(key) = map.next_key::<beef::lean::Cow<str>>()? {
let value = map.next_value_seed(self)?;
let pykey: *mut pyo3_ffi::PyObject;
let pyhash: pyo3_ffi::Py_hash_t;
Expand Down

0 comments on commit 8166f8f

Please sign in to comment.