build(deps): bump indexmap from 2.1.0 to 2.2.2 (#35125)

* build(deps): bump indexmap from 2.1.0 to 2.2.2

Bumps [indexmap](https://github.com/indexmap-rs/indexmap) from 2.1.0 to 2.2.2.
- [Changelog](https://github.com/indexmap-rs/indexmap/blob/master/RELEASES.md)
- [Commits](https://github.com/indexmap-rs/indexmap/compare/2.1.0...2.2.2)

---
updated-dependencies:
- dependency-name: indexmap
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* [auto-commit] Update all Cargo lock files

* call swap_remove_entry directly

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: dependabot-buildkite <dependabot-buildkite@noreply.solana.com>
Co-authored-by: yihau <yihau.chen@icloud.com>
This commit is contained in:
dependabot[bot] 2024-02-07 19:02:20 +00:00 committed by GitHub
parent 2c0001b530
commit 7c59786f10
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 26 deletions

26
Cargo.lock generated
View File

@ -2298,7 +2298,7 @@ dependencies = [
"futures-sink",
"futures-util",
"http",
"indexmap 2.1.0",
"indexmap 2.2.2",
"slab",
"tokio",
"tokio-util 0.7.1",
@ -2674,9 +2674,9 @@ dependencies = [
[[package]]
name = "indexmap"
version = "2.1.0"
version = "2.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
checksum = "824b2ae422412366ba479e8111fd301f7b5faece8149317bb81925979a53f520"
dependencies = [
"equivalent",
"hashbrown 0.14.3",
@ -4931,7 +4931,7 @@ version = "0.9.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1bf28c79a99f70ee1f1d83d10c875d2e70618417fda01ad1785e027579d9d38"
dependencies = [
"indexmap 2.1.0",
"indexmap 2.2.2",
"itoa",
"ryu",
"serde",
@ -5275,7 +5275,7 @@ dependencies = [
"fnv",
"im",
"index_list",
"indexmap 2.1.0",
"indexmap 2.2.2",
"itertools",
"lazy_static",
"libsecp256k1",
@ -5755,7 +5755,7 @@ dependencies = [
"dashmap",
"futures 0.3.30",
"futures-util",
"indexmap 2.1.0",
"indexmap 2.2.2",
"indicatif",
"log",
"quinn",
@ -5836,7 +5836,7 @@ dependencies = [
"bincode",
"crossbeam-channel",
"futures-util",
"indexmap 2.1.0",
"indexmap 2.2.2",
"indicatif",
"log",
"rand 0.8.5",
@ -6175,7 +6175,7 @@ dependencies = [
"clap 2.33.3",
"crossbeam-channel",
"flate2",
"indexmap 2.1.0",
"indexmap 2.2.2",
"itertools",
"log",
"lru",
@ -7267,7 +7267,7 @@ dependencies = [
"crossbeam-channel",
"futures-util",
"histogram",
"indexmap 2.1.0",
"indexmap 2.2.2",
"itertools",
"libc",
"log",
@ -7378,7 +7378,7 @@ dependencies = [
"console",
"csv",
"ctrlc",
"indexmap 2.1.0",
"indexmap 2.2.2",
"indicatif",
"pickledb",
"serde",
@ -7407,7 +7407,7 @@ dependencies = [
"async-trait",
"bincode",
"futures-util",
"indexmap 2.1.0",
"indexmap 2.2.2",
"indicatif",
"log",
"rayon",
@ -8618,7 +8618,7 @@ version = "0.20.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "70f427fce4d84c72b5b732388bf4a9f4531b53f74e2887e3ecb2481f68f66d81"
dependencies = [
"indexmap 2.1.0",
"indexmap 2.2.2",
"toml_datetime",
"winnow",
]
@ -8629,7 +8629,7 @@ version = "0.21.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d34d383cd00a163b4a5b85053df514d45bc330f6de7737edfe0a93311d1eaa03"
dependencies = [
"indexmap 2.1.0",
"indexmap 2.2.2",
"serde",
"serde_spanned",
"toml_datetime",

View File

@ -222,7 +222,7 @@ hyper = "0.14.28"
hyper-proxy = "0.9.1"
im = "15.1.0"
index_list = "0.2.11"
indexmap = "2.1.0"
indexmap = "2.2.2"
indicatif = "0.17.7"
itertools = "0.10.5"
jemallocator = { package = "tikv-jemallocator", version = "0.4.1", features = [

View File

@ -1936,7 +1936,7 @@ dependencies = [
"futures-sink",
"futures-util",
"http",
"indexmap 2.1.0",
"indexmap 2.2.2",
"slab",
"tokio",
"tokio-util 0.7.1",
@ -2287,9 +2287,9 @@ dependencies = [
[[package]]
name = "indexmap"
version = "2.1.0"
version = "2.2.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f"
checksum = "824b2ae422412366ba479e8111fd301f7b5faece8149317bb81925979a53f520"
dependencies = [
"equivalent",
"hashbrown 0.14.1",
@ -4348,7 +4348,7 @@ version = "0.9.30"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b1bf28c79a99f70ee1f1d83d10c875d2e70618417fda01ad1785e027579d9d38"
dependencies = [
"indexmap 2.1.0",
"indexmap 2.2.2",
"itoa",
"ryu",
"serde",
@ -4619,7 +4619,7 @@ dependencies = [
"fnv",
"im",
"index_list",
"indexmap 2.1.0",
"indexmap 2.2.2",
"itertools",
"lazy_static",
"log",
@ -4846,7 +4846,7 @@ dependencies = [
"dashmap",
"futures 0.3.30",
"futures-util",
"indexmap 2.1.0",
"indexmap 2.2.2",
"indicatif",
"log",
"quinn",
@ -4896,7 +4896,7 @@ dependencies = [
"bincode",
"crossbeam-channel",
"futures-util",
"indexmap 2.1.0",
"indexmap 2.2.2",
"log",
"rand 0.8.5",
"rayon",
@ -5147,7 +5147,7 @@ dependencies = [
"clap 2.33.3",
"crossbeam-channel",
"flate2",
"indexmap 2.1.0",
"indexmap 2.2.2",
"itertools",
"log",
"lru",
@ -6310,7 +6310,7 @@ dependencies = [
"crossbeam-channel",
"futures-util",
"histogram",
"indexmap 2.1.0",
"indexmap 2.2.2",
"itertools",
"libc",
"log",
@ -6412,7 +6412,7 @@ dependencies = [
"async-trait",
"bincode",
"futures-util",
"indexmap 2.1.0",
"indexmap 2.2.2",
"indicatif",
"log",
"rayon",
@ -7468,7 +7468,7 @@ version = "0.20.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "396e4d48bbb2b7554c944bde63101b5ae446cff6ec4a24227428f15eb72ef338"
dependencies = [
"indexmap 2.1.0",
"indexmap 2.2.2",
"toml_datetime",
"winnow",
]

View File

@ -1126,7 +1126,7 @@ impl ConnectionTable {
});
let new_size = e_ref.len();
if e_ref.is_empty() {
e.remove_entry();
e.swap_remove_entry();
}
let connections_removed = old_size.saturating_sub(new_size);
self.total_size = self.total_size.saturating_sub(connections_removed);