Fix formatting errors from cargo-sort (#7512)

[cargo-sort is currently failing on CI](https://github.com/sigp/lighthouse/actions/runs/15198128212/job/42746931918?pr=7025), likely due to new checks introduced in version [2.0.0](https://github.com/DevinR528/cargo-sort/releases/tag/v2.0.0).


  Fixed the errors by running cargo-sort with formatting enabled.
This commit is contained in:
Akihito Nakano
2025-05-23 14:25:56 +09:00
committed by GitHub
parent 6af8c187e0
commit a2797d4bbd
26 changed files with 246 additions and 247 deletions

View File

@@ -6,6 +6,11 @@ edition = { workspace = true }
autotests = false
rust-version = "1.83.0"
# Prevent cargo-udeps from flagging the dummy package `target_check`, which exists only
# to assert properties of the compilation target.
[package.metadata.cargo-udeps.ignore]
normal = ["target_check"]
[features]
default = ["slasher-lmdb", "beacon-node-leveldb"]
# Writes debugging .ssz files to /tmp during block processing.
@@ -32,12 +37,6 @@ beacon-node-redb = ["store/redb"]
# Deprecated. This is now enabled by default on non windows targets.
jemalloc = []
[target.'cfg(not(target_os = "windows"))'.dependencies]
malloc_utils = { workspace = true, features = ["jemalloc"] }
[target.'cfg(target_os = "windows")'.dependencies]
malloc_utils = { workspace = true }
[dependencies]
account_manager = { "path" = "../account_manager" }
account_utils = { workspace = true }
@@ -69,6 +68,12 @@ unused_port = { workspace = true }
validator_client = { workspace = true }
validator_manager = { path = "../validator_manager" }
[target.'cfg(not(target_os = "windows"))'.dependencies]
malloc_utils = { workspace = true, features = ["jemalloc"] }
[target.'cfg(target_os = "windows")'.dependencies]
malloc_utils = { workspace = true }
[dev-dependencies]
beacon_node_fallback = { workspace = true }
beacon_processor = { workspace = true }
@@ -85,8 +90,3 @@ zeroize = { workspace = true }
[[test]]
name = "lighthouse_tests"
path = "tests/main.rs"
# Prevent cargo-udeps from flagging the dummy package `target_check`, which exists only
# to assert properties of the compilation target.
[package.metadata.cargo-udeps.ignore]
normal = ["target_check"]