From 98d181e6b41aaafb6d4c99c009e0486749190104 Mon Sep 17 00:00:00 2001 From: hanabi1224 Date: Mon, 2 Dec 2024 14:51:36 +0800 Subject: [PATCH] chore: upgrade rust-toolchain (#5023) --- Cargo.lock | 295 ++++++++++++------------ rust-toolchain.toml | 2 +- src/chain/store/chain_store.rs | 4 +- src/chain_sync/validation.rs | 2 +- src/cid_collections/hash_map.rs | 4 +- src/cli/humantoken.rs | 4 +- src/cli_shared/snapshot.rs | 109 ++++----- src/fil_cns/validation.rs | 4 +- src/metrics/mod.rs | 2 +- src/rpc/methods/eth.rs | 2 +- src/rpc/reflect/parser.rs | 2 +- src/shim/actors/market/balance_table.rs | 2 +- src/shim/actors/miner/partition.rs | 2 +- src/state_manager/utils.rs | 4 +- src/utils/encoding/cid_de_cbor.rs | 4 +- 15 files changed, 229 insertions(+), 213 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c4a1b547048e..ba7e855905df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "addr2line" @@ -91,9 +91,9 @@ dependencies = [ [[package]] name = "allocator-api2" -version = "0.2.20" +version = "0.2.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "45862d1c77f2228b9e10bc609d5bc203d86ebc9b87ad8d5d5167a6c9abf739d9" +checksum = "683d7910e743518b0e34f1186f92494becacb047c7b6bf616c96772180fef923" [[package]] name = "always-assert" @@ -283,7 +283,7 @@ checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "synstructure 0.13.1", ] @@ -295,7 +295,7 @@ checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -550,7 +550,7 @@ checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -567,7 +567,7 @@ checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -821,7 +821,7 @@ dependencies = [ "regex", "rustc-hash 1.1.0", "shlex", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1074,9 +1074,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.8.0" +version = "1.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" +checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b" dependencies = [ "serde", ] @@ -1092,9 +1092,9 @@ dependencies = [ [[package]] name = "cargo-platform" -version = "0.1.8" +version = "0.1.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "24b1f0365a6c6bb4020cd05806fd0d33c44d38046b8bd7f0e40814b9763cabfc" +checksum = "e35af189006b9c0f00a064685c727031e3ed2d8020f7ba284d78cc2671bd36ea" dependencies = [ "serde", ] @@ -1135,13 +1135,13 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3fce8dd7fcfcbf3a0a87d8f515194b49d6135acab73e18bd380d1d93bb1a15eb" dependencies = [ "heck 0.4.1", - "indexmap 2.6.0", + "indexmap 2.7.0", "log", "proc-macro2", "quote", "serde", "serde_json", - "syn 2.0.89", + "syn 2.0.90", "tempfile", "toml 0.8.19", ] @@ -1157,9 +1157,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.2.1" +version = "1.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fd9de9f2205d5ef3fd67e685b0df337994ddd4495e2a28d185500d0e1edfea47" +checksum = "f34d93e62b03caf570cccc334cbc6c2fceca82f39211051345108adcba3eebdc" dependencies = [ "jobserver", "libc", @@ -1352,7 +1352,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1579,7 +1579,7 @@ dependencies = [ "hashbrown 0.14.5", "log", "regalloc2", - "rustc-hash 2.0.0", + "rustc-hash 2.1.0", "smallvec", "target-lexicon", ] @@ -1895,7 +1895,7 @@ checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1930,7 +1930,7 @@ dependencies = [ "proc-macro2", "quote", "strsim", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1941,7 +1941,7 @@ checksum = "d336a2a514f6ccccaa3e09b02d41d35330c07ddf03a62165fcec10bb561c7806" dependencies = [ "darling_core", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -1979,7 +1979,7 @@ dependencies = [ "proc-macro2", "quote", "semver", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2025,7 +2025,7 @@ checksum = "74ef43543e701c01ad77d3a5922755c6a1d71b22d942cb8042be4994b380caff" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2037,7 +2037,7 @@ dependencies = [ "proc-macro2", "quote", "structmeta", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2048,7 +2048,7 @@ checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2069,7 +2069,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2079,7 +2079,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c" dependencies = [ "derive_builder_core", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2100,7 +2100,7 @@ dependencies = [ "convert_case", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "unicode-xid", ] @@ -2179,7 +2179,7 @@ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2326,7 +2326,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2347,12 +2347,12 @@ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" [[package]] name = "errno" -version = "0.3.9" +version = "0.3.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "534c5cf6194dfab3db3242765c03bbe257cf92f22b38f6bc0c58d59108a820ba" +checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d" dependencies = [ "libc", - "windows-sys 0.52.0", + "windows-sys 0.59.0", ] [[package]] @@ -2401,9 +2401,9 @@ dependencies = [ [[package]] name = "event-listener-strategy" -version = "0.5.2" +version = "0.5.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f214dc438f977e6d4e3500aaa277f5ad94ca83fbbd9b1a15713ce2344ccc5a1" +checksum = "3c3e4e0dd3673c1139bf041f3008816d9cf2946bbfac2945c09e523b8d7b05b2" dependencies = [ "event-listener 5.3.1", "pin-project-lite", @@ -2437,7 +2437,7 @@ checksum = "ce8cd46a041ad005ab9c71263f9a0ff5b529eac0fe4cc9b4a20f4f0765d8cf4b" dependencies = [ "execute-command-tokens", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -2710,7 +2710,7 @@ dependencies = [ "fvm_shared 2.10.0", "fvm_shared 3.12.0", "fvm_shared 4.5.2", - "indexmap 2.6.0", + "indexmap 2.7.0", "integer-encoding", "num-derive", "num-traits", @@ -3068,7 +3068,7 @@ dependencies = [ "human-repr", "human_bytes", "humantime", - "indexmap 2.6.0", + "indexmap 2.7.0", "indicatif", "insta", "integer-encoding", @@ -3151,7 +3151,7 @@ dependencies = [ "statrs", "strum", "strum_macros", - "syn 2.0.89", + "syn 2.0.90", "tabled", "tap", "tar", @@ -3405,7 +3405,7 @@ checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3864,7 +3864,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "40ecd4077b5ae9fd2e9e169b102c6c330d0605168eb0e8bf79952b256dbefffd" dependencies = [ "fallible-iterator", - "indexmap 2.6.0", + "indexmap 2.7.0", "stable_deref_trait", ] @@ -3891,7 +3891,7 @@ checksum = "53010ccb100b96a67bc32c0175f0ed1426b31b655d562898e57325f81c023ac0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -3937,7 +3937,7 @@ dependencies = [ "futures-sink", "futures-util", "http 0.2.12", - "indexmap 2.6.0", + "indexmap 2.7.0", "slab", "tokio", "tokio-util", @@ -3956,7 +3956,7 @@ dependencies = [ "futures-core", "futures-sink", "http 1.1.0", - "indexmap 2.6.0", + "indexmap 2.7.0", "slab", "tokio", "tokio-util", @@ -4221,9 +4221,9 @@ dependencies = [ [[package]] name = "http-range-header" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08a397c49fec283e3d6211adbe480be95aae5f304cfb923e9970e08956d5168a" +checksum = "9171a2ea8a68358193d15dd5d70c1c10a2afc3e7e4c5bc92bc9f025cebd7359c" [[package]] name = "httparse" @@ -4489,7 +4489,7 @@ checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -4623,7 +4623,7 @@ checksum = "a0eb5a3343abf848c0984fe4604b2b105da9539376e24fc0a3b0007411ae4fd9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -4639,9 +4639,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "707907fe3c25f5424cce2cb7e1cbcafee6bdbe735ca90ef77c29e84591e5b9da" +checksum = "62f822373a4fe84d4bb149bf54e584a7f4abec90e072ed49cda0edea5b95471f" dependencies = [ "equivalent", "hashbrown 0.15.2", @@ -4861,10 +4861,11 @@ checksum = "8b23360e99b8717f20aaa4598f5a6541efbe30630039fbc7706cf954a87947ae" [[package]] name = "js-sys" -version = "0.3.72" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" +checksum = "a865e038f7f6ed956f788f0d7d60c541fff74c7bd74272c5d4cf15c63743e705" dependencies = [ + "once_cell", "wasm-bindgen", ] @@ -4922,7 +4923,7 @@ dependencies = [ "parking_lot", "pin-project", "rand", - "rustc-hash 2.0.0", + "rustc-hash 2.1.0", "serde", "serde_json", "thiserror 1.0.69", @@ -5083,7 +5084,7 @@ dependencies = [ "proc-macro2", "quote", "regex", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -5103,9 +5104,9 @@ checksum = "884e2677b40cc8c339eaefcb701c32ef1fd2493d71118dc0ca4b6a736c93bd67" [[package]] name = "libc" -version = "0.2.166" +version = "0.2.167" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c2ccc108bbc0b1331bd061864e7cd823c0cab660bbe6970e66e2c0614decde36" +checksum = "09d6582e104315a817dff97f75133544b2e094ee22447d2acf4a74e189ba06fc" [[package]] name = "libipld" @@ -5158,9 +5159,9 @@ dependencies = [ [[package]] name = "libloading" -version = "0.8.5" +version = "0.8.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4979f22fdb869068da03c9f7528f8297c6fd2606bc3a4affe42e6a823fdb8da4" +checksum = "fc2f4eb4bc735547cfed7c0a4922cbd04a4655978c09b54f1f7b228750664c34" dependencies = [ "cfg-if", "windows-targets 0.52.6", @@ -5601,7 +5602,7 @@ dependencies = [ "heck 0.5.0", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -6000,11 +6001,10 @@ dependencies = [ [[package]] name = "mio" -version = "1.0.2" +version = "1.0.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80e04d1dcff3aae0704555fe5fee3bcfaf3d1fdf8a7e521d5b9d2b42acb52cec" +checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd" dependencies = [ - "hermit-abi 0.3.9", "libc", "wasi", "windows-sys 0.52.0", @@ -6127,7 +6127,7 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "synstructure 0.13.1", ] @@ -6180,7 +6180,7 @@ checksum = "254a5372af8fc138e36684761d3c0cdb758a4410e938babcff1c860ce14ddbfc" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -6389,7 +6389,7 @@ checksum = "ed3955f1a9c7c0c15e092f9c887db08b1fc683305fdf6eb6684f22555355e202" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -6468,7 +6468,7 @@ checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" dependencies = [ "crc32fast", "hashbrown 0.15.2", - "indexmap 2.6.0", + "indexmap 2.7.0", "memchr", ] @@ -6607,7 +6607,7 @@ dependencies = [ "proc-macro-crate 3.2.0", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -6695,10 +6695,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1cff69f3ba9d0346c1dbe1248fc2ed4523567b683d1b6ff4144a6b3583369082" dependencies = [ "deprecate-until", - "indexmap 2.6.0", + "indexmap 2.7.0", "integer-sqrt", "num-traits", - "rustc-hash 2.0.0", + "rustc-hash 2.1.0", "thiserror 1.0.69", ] @@ -6734,7 +6734,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b4c5cc86750666a3ed20bdaf5ca2a0344f9c67674cae0515bec2da16fbaa47db" dependencies = [ "fixedbitset", - "indexmap 2.6.0", + "indexmap 2.7.0", ] [[package]] @@ -6754,7 +6754,7 @@ checksum = "3c0f5fad0874fc7abcd4d750e76917eaebbecaa2c20bde22e1dbeeba8beb758c" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -6897,9 +6897,9 @@ dependencies = [ [[package]] name = "postcard" -version = "1.1.0" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f63d01def49fc815900a83e7a4a5083d2abc81b7ddd569a3fa0477778ae9b3ec" +checksum = "170a2601f67cc9dba8edd8c4870b15f71a6a2dc196daec8c83f72b59dff628a8" dependencies = [ "cobs", "embedded-io 0.4.0", @@ -6969,7 +6969,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "64d1ec885c64d0457d564db4ec299b2dae3f9c02808b8ad9c3a089c591b18033" dependencies = [ "proc-macro2", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -7056,7 +7056,7 @@ dependencies = [ "proc-macro-error-attr2", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -7111,7 +7111,7 @@ checksum = "440f724eba9f6996b75d63681b0a92b06947f1457076d503a4d2e2c8f56442b8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -7144,7 +7144,7 @@ dependencies = [ "itertools 0.12.1", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -7157,7 +7157,7 @@ dependencies = [ "itertools 0.13.0", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -7258,7 +7258,7 @@ dependencies = [ "pin-project-lite", "quinn-proto", "quinn-udp", - "rustc-hash 2.0.0", + "rustc-hash 2.1.0", "rustls", "socket2 0.5.8", "thiserror 2.0.3", @@ -7276,7 +7276,7 @@ dependencies = [ "getrandom", "rand", "ring 0.17.8", - "rustc-hash 2.0.0", + "rustc-hash 2.1.0", "rustls", "rustls-pki-types", "slab", @@ -7360,13 +7360,13 @@ checksum = "b0d119855a79ce49d812b0d8097a4f77c7277a1c310788e2c99c3c77dd296da6" dependencies = [ "cov-mark", "either", - "indexmap 2.6.0", + "indexmap 2.7.0", "itertools 0.12.1", "ra-ap-rustc_lexer", "ra_ap_parser", "ra_ap_stdx", "rowan", - "rustc-hash 2.0.0", + "rustc-hash 2.1.0", "smol_str", "tracing", "triomphe", @@ -7506,7 +7506,7 @@ checksum = "12908dbeb234370af84d0579b9f68258a0f67e201412dd9a2814e6f45b2fc0f0" dependencies = [ "hashbrown 0.14.5", "log", - "rustc-hash 2.0.0", + "rustc-hash 2.1.0", "slice-group-by", "smallvec", ] @@ -7754,7 +7754,7 @@ dependencies = [ "rust2go-cli", "rust2go-convert", "rust2go-macro", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -7777,7 +7777,7 @@ checksum = "9e6cbc4f2ec83801d291d9285112d664ced769c3c141ae800bda677452d57ff3" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -7795,7 +7795,7 @@ dependencies = [ "proc-macro2", "quote", "rust2go-common", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -7812,9 +7812,9 @@ checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2" [[package]] name = "rustc-hash" -version = "2.0.0" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "583034fd73374156e66797ed8e5b0d5690409c9226b22d87cb7f19821c05d152" +checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497" [[package]] name = "rustc-hex" @@ -8017,7 +8017,7 @@ dependencies = [ "proc-macro2", "quote", "serde", - "syn 2.0.89", + "syn 2.0.90", "toml 0.8.19", ] @@ -8081,7 +8081,7 @@ dependencies = [ "proc-macro2", "quote", "serde_derive_internals", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -8163,7 +8163,7 @@ checksum = "ad1e866f866923f252f05c889987993144fb74e722403468a4ebd70c3cd756c0" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -8174,7 +8174,7 @@ checksum = "18d26a20a969b9e3fdf2fc2d9f21eda6c40e2de84c9408bb5d3b05d499aae711" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -8219,7 +8219,7 @@ checksum = "6c64451ba24fc7a6a2d60fc75dd9c83c90903b19028d4eff35e88fc1e86564e9" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -8295,7 +8295,7 @@ dependencies = [ "chrono", "hex", "indexmap 1.9.3", - "indexmap 2.6.0", + "indexmap 2.7.0", "serde", "serde_derive", "serde_json", @@ -8312,7 +8312,7 @@ dependencies = [ "darling", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -8321,7 +8321,7 @@ version = "0.9.34+deprecated" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.7.0", "itoa", "ryu", "serde", @@ -8529,7 +8529,7 @@ checksum = "0eb01866308440fc64d6c44d9e86c5cc17adfe33c4d6eed55da9145044d0ffc1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -8835,7 +8835,7 @@ dependencies = [ "proc-macro2", "quote", "structmeta-derive", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -8846,7 +8846,7 @@ checksum = "a60bcaff7397072dca0017d1db428e30d5002e00b6847703e2e42005c95fbe00" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -8868,7 +8868,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -8890,9 +8890,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.89" +version = "2.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "44d46482f1c1c87acd84dea20c1bf5ebff4c757009ed6bf19cfd36fb10e92c4e" +checksum = "919d3b74a5dd0ccd15aeb8f93e7006bd9e14c295087c9896a110f490752bcf31" dependencies = [ "proc-macro2", "quote", @@ -8934,7 +8934,7 @@ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -9073,7 +9073,7 @@ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -9084,7 +9084,7 @@ checksum = "f077553d607adc1caf65430528a576c757a71ed73944b66ebb58ef2bbd243568" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -9244,7 +9244,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -9333,7 +9333,7 @@ version = "0.19.15" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "1b5bb770da30e5cbfde35a2d7b9b8a2c4b8ef89548a7a6aeab5c9a576e3e7421" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.7.0", "toml_datetime", "winnow 0.5.40", ] @@ -9344,7 +9344,7 @@ version = "0.22.22" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4ae48d6208a266e853d946088ed816055e556cc6028c5e8e2b84d9fa5dd7c7f5" dependencies = [ - "indexmap 2.6.0", + "indexmap 2.7.0", "serde", "serde_spanned", "toml_datetime", @@ -9480,7 +9480,7 @@ checksum = "395ae124c09f9e6918a2310af6038fba074bcf474ac352496d5910dd59a2226d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -9542,7 +9542,7 @@ dependencies = [ "tracing", "tracing-core", "tracing-log 0.1.4", - "tracing-serde", + "tracing-serde 0.1.3", "tracing-subscriber", "url", ] @@ -9557,11 +9557,21 @@ dependencies = [ "tracing-core", ] +[[package]] +name = "tracing-serde" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "704b1aeb7be0d0a84fc9828cae51dab5970fee5088f83d1dd7ee6f6246fc6ff1" +dependencies = [ + "serde", + "tracing-core", +] + [[package]] name = "tracing-subscriber" -version = "0.3.18" +version = "0.3.19" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ad0f048c97dbd9faa9b7df56362b8ebcaa52adb06b498c050d2f4e32f90a7a8b" +checksum = "e8189decb5ac0fa7bc8b96b7cb9b2701d60d48805aca84a238004d665fcc4008" dependencies = [ "matchers", "nu-ansi-term", @@ -9576,7 +9586,7 @@ dependencies = [ "tracing", "tracing-core", "tracing-log 0.2.0", - "tracing-serde", + "tracing-serde 0.2.0", ] [[package]] @@ -9833,9 +9843,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" +checksum = "d15e63b4482863c109d70a7b8706c1e364eb6ea449b201a76c5b89cedcec2d5c" dependencies = [ "cfg-if", "once_cell", @@ -9844,36 +9854,37 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" +checksum = "8d36ef12e3aaca16ddd3f67922bc63e48e953f126de60bd33ccc0101ef9998cd" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.45" +version = "0.4.47" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" +checksum = "9dfaf8f50e5f293737ee323940c7d8b08a66a95a419223d9f41610ca08b0833d" dependencies = [ "cfg-if", "js-sys", + "once_cell", "wasm-bindgen", "web-sys", ] [[package]] name = "wasm-bindgen-macro" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" +checksum = "705440e08b42d3e4b36de7d66c944be628d579796b8090bfa3471478a2260051" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -9881,22 +9892,22 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" +checksum = "98c9ae5a76e46f4deecd0f0255cc223cfa18dc9b261213b8aa0c7b36f61b3f1d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.95" +version = "0.2.97" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" +checksum = "6ee99da9c5ba11bd675621338ef6fa52296b76b83305e9b6e5c77d4c286d6d49" [[package]] name = "wasm-encoder" @@ -9946,7 +9957,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9dbe55c8f9d0dbd25d9447a5a889ff90c0cc3feaa7395310d3d826b2c703eaab" dependencies = [ "bitflags 2.6.0", - "indexmap 2.6.0", + "indexmap 2.7.0", "semver", ] @@ -9959,7 +9970,7 @@ dependencies = [ "ahash", "bitflags 2.6.0", "hashbrown 0.14.5", - "indexmap 2.6.0", + "indexmap 2.7.0", "semver", "serde", ] @@ -9997,7 +10008,7 @@ dependencies = [ "cc", "cfg-if", "hashbrown 0.14.5", - "indexmap 2.6.0", + "indexmap 2.7.0", "libc", "libm", "log", @@ -10044,7 +10055,7 @@ dependencies = [ "anyhow", "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "wasmtime-component-util", "wasmtime-wit-bindgen", "wit-parser", @@ -10091,7 +10102,7 @@ dependencies = [ "cranelift-bitset", "cranelift-entity", "gimli 0.29.0", - "indexmap 2.6.0", + "indexmap 2.7.0", "log", "object", "postcard", @@ -10144,7 +10155,7 @@ checksum = "6879a8e168aef3fe07335343b7fbede12fa494215e83322e173d4018e124a846" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -10155,15 +10166,15 @@ checksum = "3f571f63ac1d532e986eb3973bbef3a45e4ae83de521a8d573b0fe0594dc9608" dependencies = [ "anyhow", "heck 0.4.1", - "indexmap 2.6.0", + "indexmap 2.7.0", "wit-parser", ] [[package]] name = "web-sys" -version = "0.3.72" +version = "0.3.74" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" +checksum = "a98bc3c33f0fe7e59ad7cd041b89034fa82a7c2d4365ca538dda6cdaf513863c" dependencies = [ "js-sys", "wasm-bindgen", @@ -10539,7 +10550,7 @@ checksum = "fb893dcd6d370cfdf19a0d9adfcd403efb8e544e1a0ea3a8b81a21fe392eaa78" dependencies = [ "anyhow", "id-arena", - "indexmap 2.6.0", + "indexmap 2.7.0", "log", "semver", "serde", @@ -10701,7 +10712,7 @@ checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "synstructure 0.13.1", ] @@ -10723,7 +10734,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -10743,7 +10754,7 @@ checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", "synstructure 0.13.1", ] @@ -10764,7 +10775,7 @@ checksum = "ce36e65b0d2999d2aafac989fb249189a141aee1f53c612c1f37d72631959f69" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] @@ -10786,7 +10797,7 @@ checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.89", + "syn 2.0.90", ] [[package]] diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 6f2b7897390e..752863b189a5 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,3 +1,3 @@ [toolchain] -channel = "1.82.0" +channel = "1.83.0" components = ["clippy", "llvm-tools-preview", "rustfmt"] diff --git a/src/chain/store/chain_store.rs b/src/chain/store/chain_store.rs index 7eea6054aaf3..61b2ae5b374b 100644 --- a/src/chain/store/chain_store.rs +++ b/src/chain/store/chain_store.rs @@ -119,9 +119,9 @@ where let (publisher, _) = broadcast::channel(SINK_CAP); let chain_index = Arc::new(ChainIndex::new(Arc::clone(&db))); - if !settings + if settings .read_obj::(HEAD_KEY)? - .is_some_and(|tipset_keys| chain_index.load_tipset(&tipset_keys).is_ok()) + .is_none_or(|tipset_keys| chain_index.load_tipset(&tipset_keys).is_err()) { let tipset_keys = TipsetKey::from(nonempty![*genesis_block_header.cid()]); settings.write_obj(HEAD_KEY, &tipset_keys)?; diff --git a/src/chain_sync/validation.rs b/src/chain_sync/validation.rs index f41737be36cd..3899dbd25d48 100644 --- a/src/chain_sync/validation.rs +++ b/src/chain_sync/validation.rs @@ -52,7 +52,7 @@ impl From for TipsetValidationError { pub struct TipsetValidator<'a>(pub &'a FullTipset); -impl<'a> TipsetValidator<'a> { +impl TipsetValidator<'_> { pub fn validate( &self, chainstore: &ChainStore, diff --git a/src/cid_collections/hash_map.rs b/src/cid_collections/hash_map.rs index f02d910f9bf1..0e4863beedcf 100644 --- a/src/cid_collections/hash_map.rs +++ b/src/cid_collections/hash_map.rs @@ -149,7 +149,7 @@ pub struct OccupiedEntry<'a, V> { inner: OccupiedEntryInner<'a, V>, } -impl<'a, V> OccupiedEntry<'a, V> { +impl OccupiedEntry<'_, V> { /// Gets a reference to the value in the entry. /// /// See also [`std::collections::hash_map::OccupiedEntry::get`]. @@ -316,7 +316,7 @@ pub struct Keys<'a, V> { } #[cfg(test)] -impl<'a, V> Iterator for Keys<'a, V> { +impl Iterator for Keys<'_, V> { type Item = Cid; fn next(&mut self) -> Option { diff --git a/src/cli/humantoken.rs b/src/cli/humantoken.rs index 4ce951c1c6d1..6cb21080eeb8 100644 --- a/src/cli/humantoken.rs +++ b/src/cli/humantoken.rs @@ -192,7 +192,7 @@ mod parse { } /// Take an [si::Prefix] from the front of `input` - fn si_scale<'a, E: ParseError<&'a str>>(input: &'a str) -> IResult<&str, si::Prefix, E> { + fn si_scale<'a, E: ParseError<&'a str>>(input: &'a str) -> IResult<&'a str, si::Prefix, E> { // Try the longest matches first, so we don't e.g match `a` instead of `atto`, // leaving `tto`. @@ -219,7 +219,7 @@ mod parse { } /// Take a float from the front of `input` - fn bigdecimal<'a, E>(input: &'a str) -> IResult<&str, BigDecimal, E> + fn bigdecimal<'a, E>(input: &'a str) -> IResult<&'a str, BigDecimal, E> where E: ParseError<&'a str> + FromExternalError<&'a str, ParseBigDecimalError>, { diff --git a/src/cli_shared/snapshot.rs b/src/cli_shared/snapshot.rs index cb6b01477ec0..87de6098d47d 100644 --- a/src/cli_shared/snapshot.rs +++ b/src/cli_shared/snapshot.rs @@ -361,8 +361,63 @@ mod parse { Ok(t) } - #[test] - fn test_serialization() { + #[cfg(test)] + mod tests { + use super::*; + + #[test] + fn test_serialization() { + for (text, value) in [ + ( + "forest_snapshot_mainnet_2023-05-30_height_2905376.car.zst", + ParsedFilename::full("forest", "mainnet", 2023, 5, 30, 2905376, false), + ), + ( + "forest_snapshot_calibnet_2023-05-30_height_604419.car.zst", + ParsedFilename::full("forest", "calibnet", 2023, 5, 30, 604419, false), + ), + ( + "forest_snapshot_mainnet_2023-05-30_height_2905376.forest.car.zst", + ParsedFilename::full("forest", "mainnet", 2023, 5, 30, 2905376, true), + ), + ( + "forest_snapshot_calibnet_2023-05-30_height_604419.forest.car.zst", + ParsedFilename::full("forest", "calibnet", 2023, 5, 30, 604419, true), + ), + ( + "2905920_2023_05_30T22_00_00Z.car.zst", + ParsedFilename::short(2905920, 2023, 5, 30, 22, 0, 0), + ), + ( + "605520_2023_05_31T00_13_00Z.car.zst", + ParsedFilename::short(605520, 2023, 5, 31, 0, 13, 0), + ), + ( + "filecoin_snapshot_calibnet_2023-06-13_height_643680.car.zst", + ParsedFilename::full("filecoin", "calibnet", 2023, 6, 13, 643680, false), + ), + ( + "venus_snapshot_pineconenet_2045-01-01_height_2.car.zst", + ParsedFilename::full("venus", "pineconenet", 2045, 1, 1, 2, false), + ), + ( + "filecoin_snapshot_calibnet_2023-06-13_height_643680.forest.car.zst", + ParsedFilename::full("filecoin", "calibnet", 2023, 6, 13, 643680, true), + ), + ( + "venus_snapshot_pineconenet_2045-01-01_height_2.forest.car.zst", + ParsedFilename::full("venus", "pineconenet", 2045, 1, 1, 2, true), + ), + ] { + assert_eq!( + value, + ParsedFilename::parse_str(text).unwrap(), + "mismatch in deserialize" + ); + assert_eq!(value.to_string(), text, "mismatch in serialize"); + } + } + impl ParsedFilename<'static> { /// # Panics /// - If `ymd`/`hms` aren't valid @@ -404,56 +459,6 @@ mod parse { } } } - - for (text, value) in [ - ( - "forest_snapshot_mainnet_2023-05-30_height_2905376.car.zst", - ParsedFilename::full("forest", "mainnet", 2023, 5, 30, 2905376, false), - ), - ( - "forest_snapshot_calibnet_2023-05-30_height_604419.car.zst", - ParsedFilename::full("forest", "calibnet", 2023, 5, 30, 604419, false), - ), - ( - "forest_snapshot_mainnet_2023-05-30_height_2905376.forest.car.zst", - ParsedFilename::full("forest", "mainnet", 2023, 5, 30, 2905376, true), - ), - ( - "forest_snapshot_calibnet_2023-05-30_height_604419.forest.car.zst", - ParsedFilename::full("forest", "calibnet", 2023, 5, 30, 604419, true), - ), - ( - "2905920_2023_05_30T22_00_00Z.car.zst", - ParsedFilename::short(2905920, 2023, 5, 30, 22, 0, 0), - ), - ( - "605520_2023_05_31T00_13_00Z.car.zst", - ParsedFilename::short(605520, 2023, 5, 31, 0, 13, 0), - ), - ( - "filecoin_snapshot_calibnet_2023-06-13_height_643680.car.zst", - ParsedFilename::full("filecoin", "calibnet", 2023, 6, 13, 643680, false), - ), - ( - "venus_snapshot_pineconenet_2045-01-01_height_2.car.zst", - ParsedFilename::full("venus", "pineconenet", 2045, 1, 1, 2, false), - ), - ( - "filecoin_snapshot_calibnet_2023-06-13_height_643680.forest.car.zst", - ParsedFilename::full("filecoin", "calibnet", 2023, 6, 13, 643680, true), - ), - ( - "venus_snapshot_pineconenet_2045-01-01_height_2.forest.car.zst", - ParsedFilename::full("venus", "pineconenet", 2045, 1, 1, 2, true), - ), - ] { - assert_eq!( - value, - ParsedFilename::parse_str(text).unwrap(), - "mismatch in deserialize" - ); - assert_eq!(value.to_string(), text, "mismatch in serialize"); - } } } diff --git a/src/fil_cns/validation.rs b/src/fil_cns/validation.rs index 31918a3e1a2f..c05a0489ea58 100644 --- a/src/fil_cns/validation.rs +++ b/src/fil_cns/validation.rs @@ -428,11 +428,11 @@ fn to_fil_public_replica_infos( /// Functionality for verification of seal, winning PoSt and window PoSt proofs. /// Proof verification will be full validation by default. - +/// /// Verifies winning proof of spacetime. These proofs are generated by the /// miners that are elected to mine a new block to verify a sector. A failed /// winning proof leads to a miner being slashed. - +/// /// PoSt proof variants. enum ProofType { Winning, diff --git a/src/metrics/mod.rs b/src/metrics/mod.rs index 904e333382f8..d4ec09264b74 100644 --- a/src/metrics/mod.rs +++ b/src/metrics/mod.rs @@ -183,7 +183,7 @@ pub struct HistogramTimer<'a> { start: Instant, } -impl<'a> Drop for HistogramTimer<'a> { +impl Drop for HistogramTimer<'_> { fn drop(&mut self) { let duration = Instant::now() - self.start; self.histogram.observe(duration.as_secs_f64()); diff --git a/src/rpc/methods/eth.rs b/src/rpc/methods/eth.rs index 66923f786daf..e5d490fb69b1 100644 --- a/src/rpc/methods/eth.rs +++ b/src/rpc/methods/eth.rs @@ -881,7 +881,7 @@ fn encode_filecoin_returns_as_abi( /// Round to the next multiple of `EVM` word length. fn round_up_word(value: usize) -> usize { - ((value + (EVM_WORD_LENGTH - 1)) / EVM_WORD_LENGTH) * EVM_WORD_LENGTH + value.div_ceil(EVM_WORD_LENGTH) * EVM_WORD_LENGTH } /// Format two numbers followed by an arbitrary byte array as solidity ABI. diff --git a/src/rpc/reflect/parser.rs b/src/rpc/reflect/parser.rs index 56f76062292a..1a557fb56145 100644 --- a/src/rpc/reflect/parser.rs +++ b/src/rpc/reflect/parser.rs @@ -60,7 +60,7 @@ impl<'a> Parser<'a> { names: &'a [&'a str], calling_convention: ParamStructure, n_required: usize, - ) -> Result { + ) -> Result> { let params = match (params, calling_convention) { // ignore the calling convention if there are no arguments to parse (None, _) => None, diff --git a/src/shim/actors/market/balance_table.rs b/src/shim/actors/market/balance_table.rs index 9767259a7c6d..e83f3ae809a3 100644 --- a/src/shim/actors/market/balance_table.rs +++ b/src/shim/actors/market/balance_table.rs @@ -5,7 +5,7 @@ use super::*; use fil_actor_interface::market::BalanceTable; use fvm_ipld_blockstore::Blockstore; -impl<'bs, BS: Blockstore> BalanceTableExt for BalanceTable<'bs, BS> { +impl BalanceTableExt for BalanceTable<'_, BS> { fn for_each(&self, mut f: F) -> anyhow::Result<()> where F: FnMut(&Address, &TokenAmount) -> anyhow::Result<()>, diff --git a/src/shim/actors/miner/partition.rs b/src/shim/actors/miner/partition.rs index 69f3646c2e30..f87c0846f82a 100644 --- a/src/shim/actors/miner/partition.rs +++ b/src/shim/actors/miner/partition.rs @@ -4,7 +4,7 @@ use super::*; use fil_actor_interface::miner::Partition; -impl<'a> PartitionExt for Partition<'a> { +impl PartitionExt for Partition<'_> { fn terminated(&self) -> &BitField { match self { Partition::V8(dl) => &dl.terminated, diff --git a/src/state_manager/utils.rs b/src/state_manager/utils.rs index c27d2e7dd7e6..dbb7b23a8293 100644 --- a/src/state_manager/utils.rs +++ b/src/state_manager/utils.rs @@ -146,7 +146,7 @@ pub fn is_valid_for_sending(network_version: NetworkVersion, actor: &ActorState) // Only allow such actors to send if their delegated address is in the EAM's // namespace. - return if let Payload::Delegated(address) = actor + if let Payload::Delegated(address) = actor .delegated_address .as_ref() .expect("unfallible") @@ -155,7 +155,7 @@ pub fn is_valid_for_sending(network_version: NetworkVersion, actor: &ActorState) address.namespace() == Address::ETHEREUM_ACCOUNT_MANAGER_ACTOR.id().unwrap() } else { false - }; + } } /// Generates sector challenge indexes for use in winning PoSt verification. diff --git a/src/utils/encoding/cid_de_cbor.rs b/src/utils/encoding/cid_de_cbor.rs index 920d626d0945..931af9f46e8c 100644 --- a/src/utils/encoding/cid_de_cbor.rs +++ b/src/utils/encoding/cid_de_cbor.rs @@ -23,7 +23,7 @@ struct CidVec(Vec); /// This is much faster than constructing an [`ipld_core::ipld::Ipld`] tree and then performing the filtering. struct FilterCids<'a>(&'a mut Vec); -impl<'de, 'a> DeserializeSeed<'de> for FilterCids<'a> { +impl<'de> DeserializeSeed<'de> for FilterCids<'_> { type Value = (); fn deserialize(self, deserializer: D) -> Result @@ -32,7 +32,7 @@ impl<'de, 'a> DeserializeSeed<'de> for FilterCids<'a> { { struct FilterCidsVisitor<'a>(&'a mut Vec); - impl<'de, 'a> Visitor<'de> for FilterCidsVisitor<'a> { + impl<'de> Visitor<'de> for FilterCidsVisitor<'_> { type Value = (); fn expecting(&self, fmt: &mut fmt::Formatter<'_>) -> fmt::Result {