serde-rs / json

Strongly typed JSON library for Rust
Apache License 2.0
4.7k stars 536 forks source link

No method named `shift_insert` found for struct `IndexMap` in the current scope #1151

Closed kevmeyer closed 2 weeks ago

kevmeyer commented 2 weeks ago
error[E0599]: no method named `shift_insert` found for struct `IndexMap` in the current scope
   --> /Users/USER/.cargo/registry/src/index.crates.io-6f17d22bba15001f/serde_json-1.0.119/src/map.rs:140:18
    |
140 |         self.map.shift_insert(index, k, v)
    |                  ^^^^^^^^^^^^
kevmeyer commented 2 weeks ago

ensure indexmap is on latest version.