From b42ba05a7f14d384c54cdd654d1fdce38fb2b239 Mon Sep 17 00:00:00 2001 From: Stijn de Gooijer Date: Mon, 28 Oct 2024 19:42:25 +0100 Subject: [PATCH] build: Bump Rust toolchain to `nightly-2024-10-28` (#19492) --- Cargo.lock | 327 +++++++++--------- .../src/array/dictionary/iterator.rs | 6 +- .../src/array/dictionary/typed_iterator.rs | 10 +- .../polars-arrow/src/array/growable/null.rs | 2 +- crates/polars-arrow/src/array/iterator.rs | 2 +- crates/polars-arrow/src/array/map/iterator.rs | 6 +- .../src/array/static_array_collect.rs | 10 +- .../src/array/struct_/iterator.rs | 6 +- .../polars-arrow/src/array/union/iterator.rs | 6 +- crates/polars-arrow/src/bitmap/bitmap_ops.rs | 6 +- crates/polars-arrow/src/bitmap/iterator.rs | 16 +- .../polars-arrow/src/bitmap/utils/iterator.rs | 4 +- .../src/bitmap/utils/slice_iterator.rs | 2 +- crates/polars-arrow/src/ffi/array.rs | 2 +- crates/polars-arrow/src/io/ipc/read/common.rs | 2 +- crates/polars-arrow/src/io/ipc/read/flight.rs | 6 +- .../polars-arrow/src/io/ipc/write/common.rs | 2 +- crates/polars-arrow/src/legacy/kernels/mod.rs | 4 +- .../legacy/kernels/rolling/nulls/min_max.rs | 2 +- .../src/legacy/kernels/rolling/nulls/sum.rs | 2 +- .../legacy/kernels/rolling/nulls/variance.rs | 4 +- .../legacy/kernels/rolling/quantile_filter.rs | 4 +- crates/polars-arrow/src/storage.rs | 6 +- .../src/chunked_array/from_iterator.rs | 4 +- .../src/chunked_array/iterator/mod.rs | 14 +- .../src/chunked_array/list/iterator.rs | 8 +- .../chunked_array/logical/categorical/mod.rs | 4 +- .../src/chunked_array/object/iterator.rs | 4 +- crates/polars-core/src/datatypes/any_value.rs | 4 +- .../polars-core/src/frame/group_by/proxy.rs | 2 +- crates/polars-core/src/frame/mod.rs | 2 +- crates/polars-core/src/series/mod.rs | 4 +- crates/polars-core/src/series/series_trait.rs | 2 +- .../polars-expr/src/expressions/group_iter.rs | 2 +- crates/polars-io/src/csv/read/read_impl.rs | 2 +- .../src/csv/read/read_impl/batched.rs | 4 +- crates/polars-io/src/json/mod.rs | 2 +- crates/polars-io/src/ndjson/buffer.rs | 4 +- crates/polars-io/src/ndjson/core.rs | 4 +- crates/polars-io/src/path_utils/mod.rs | 2 +- crates/polars-json/src/json/write/mod.rs | 2 +- .../src/arrow/read/deserialize/binview.rs | 12 +- .../src/arrow/read/deserialize/boolean.rs | 2 +- .../src/arrow/read/deserialize/dictionary.rs | 2 +- .../read/deserialize/fixed_size_binary.rs | 2 +- .../arrow/read/deserialize/nested_utils.rs | 4 +- .../arrow/read/deserialize/primitive/mod.rs | 6 +- .../read/deserialize/utils/array_chunks.rs | 2 +- .../src/arrow/read/deserialize/utils/mod.rs | 8 +- .../src/arrow/write/nested/dremel/mod.rs | 4 +- .../src/parquet/encoding/bitpacked/decode.rs | 10 +- .../encoding/byte_stream_split/decoder.rs | 2 +- .../encoding/delta_byte_array/decoder.rs | 2 +- .../src/parquet/encoding/hybrid_rle/bitmap.rs | 2 +- .../parquet/encoding/hybrid_rle/buffered.rs | 12 +- .../parquet/encoding/hybrid_rle/gatherer.rs | 2 +- .../parquet/schema/io_message/from_message.rs | 2 +- .../src/parquet/write/dyn_iter.rs | 4 +- .../dsl/function_expr/range/datetime_range.rs | 2 +- crates/polars-plan/src/plans/ir/dot.rs | 2 +- crates/polars-plan/src/plans/ir/format.rs | 10 +- .../polars-plan/src/plans/ir/scan_sources.rs | 2 +- crates/polars-plan/src/plans/lit.rs | 4 +- .../src/plans/optimizer/collapse_joins.rs | 2 +- .../src/plans/optimizer/cse/cse_lp.rs | 4 +- .../polars-stream/src/async_executor/mod.rs | 2 +- .../src/async_executor/park_group.rs | 2 +- .../polars-stream/src/async_executor/task.rs | 16 +- .../src/async_primitives/connector.rs | 4 +- .../src/async_primitives/task_parker.rs | 2 +- .../src/async_primitives/wait_group.rs | 2 +- crates/polars-stream/src/pipe.rs | 4 +- crates/polars-time/src/windows/window.rs | 2 +- crates/polars-utils/src/hashing.rs | 6 +- crates/polars-utils/src/total_ord.rs | 4 +- .../polars/tests/it/arrow/bitmap/utils/fmt.rs | 2 +- crates/polars/tests/it/io/avro/read_async.rs | 9 - crates/polars/tests/it/io/avro/write_async.rs | 3 - .../it/io/parquet/read/primitive_nested.rs | 4 +- .../src/rust/user-guide/io/cloud-storage.rs | 4 - rust-toolchain.toml | 2 +- 81 files changed, 328 insertions(+), 351 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 209d06f4079f..d10a91b718db 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "addr2line" -version = "0.24.1" +version = "0.24.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f5fb1d8e4442bd405fdfd1dacb42792696b0cf9cb15882e5d097b742a676d375" +checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1" dependencies = [ "gimli", ] @@ -89,15 +89,15 @@ checksum = "4b46cbb362ab8752921c97e041f5e366ee6297bd428a31275b9fcf1e380f7299" [[package]] name = "anstyle" -version = "1.0.8" +version = "1.0.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1bec1de6f59aedf83baf9ff929c98f2ad654b97c9510f4e70cf6f661d49fd5b1" +checksum = "8365de52b16c035ff4fcafe0092ba9390540e3e352870ac09933bebcaa2c8c56" [[package]] name = "anyhow" -version = "1.0.89" +version = "1.0.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "86fdf8605db99b54d3cd748a44c6d04df638eb5dafb219b135d0149bd0db01f6" +checksum = "c042108f3ed77fd83760a5fd79b53be043192bb3b9dba91d8c574c0ada7850c8" [[package]] name = "apache-avro" @@ -206,7 +206,7 @@ checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -217,7 +217,7 @@ checksum = "721cae7de5c34fbb2acd27e21e6d2cf7b886dce0c27388d46c4e6c47ea4318dd" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -265,9 +265,9 @@ dependencies = [ [[package]] name = "aws-config" -version = "1.5.7" +version = "1.5.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8191fb3091fa0561d1379ef80333c3c7191c6f0435d986e85821bcf7acbd1126" +checksum = "2d6448cfb224dd6a9b9ac734f58622dd0d4751f3589f3b777345745f46b2eb14" dependencies = [ "aws-credential-types", "aws-runtime", @@ -368,9 +368,9 @@ dependencies = [ [[package]] name = "aws-sdk-sso" -version = "1.44.0" +version = "1.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0b90cfe6504115e13c41d3ea90286ede5aa14da294f3fe077027a6e83850843c" +checksum = "a8776850becacbd3a82a4737a9375ddb5c6832a51379f24443a98e61513f852c" dependencies = [ "aws-credential-types", "aws-runtime", @@ -390,9 +390,9 @@ dependencies = [ [[package]] name = "aws-sdk-ssooidc" -version = "1.45.0" +version = "1.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "167c0fad1f212952084137308359e8e4c4724d1c643038ce163f06de9662c1d0" +checksum = "0007b5b8004547133319b6c4e87193eee2a0bcb3e4c18c75d09febe9dab7b383" dependencies = [ "aws-credential-types", "aws-runtime", @@ -412,9 +412,9 @@ dependencies = [ [[package]] name = "aws-sdk-sts" -version = "1.44.0" +version = "1.47.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2cb5f98188ec1435b68097daa2a37d74b9d17c9caa799466338a8d1544e71b9d" +checksum = "9fffaa356e7f1c725908b75136d53207fa714e348f365671df14e95a60530ad3" dependencies = [ "aws-credential-types", "aws-runtime", @@ -435,9 +435,9 @@ dependencies = [ [[package]] name = "aws-sigv4" -version = "1.2.4" +version = "1.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cc8db6904450bafe7473c6ca9123f88cc11089e41a025408f992db4e22d3be68" +checksum = "5619742a0d8f253be760bfbb8e8e8368c69e3587e4637af5754e488a611499b1" dependencies = [ "aws-credential-types", "aws-smithy-eventstream", @@ -547,9 +547,9 @@ dependencies = [ [[package]] name = "aws-smithy-runtime" -version = "1.7.1" +version = "1.7.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1ce695746394772e7000b39fe073095db6d45a862d0767dd5ad0ac0d7f8eb87" +checksum = "be28bd063fa91fd871d131fc8b68d7cd4c5fa0869bea68daca50dcb1cbd76be2" dependencies = [ "aws-smithy-async", "aws-smithy-http", @@ -562,7 +562,7 @@ dependencies = [ "http-body 0.4.6", "http-body 1.0.1", "httparse", - "hyper 0.14.30", + "hyper 0.14.31", "hyper-rustls 0.24.2", "once_cell", "pin-project-lite", @@ -591,9 +591,9 @@ dependencies = [ [[package]] name = "aws-smithy-types" -version = "1.2.7" +version = "1.2.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "147100a7bea70fa20ef224a6bad700358305f5dc0f84649c53769761395b355b" +checksum = "07c9cdc179e6afbf5d391ab08c85eac817b51c87e1892a5edb5f7bbdc64314b4" dependencies = [ "base64-simd", "bytes", @@ -689,9 +689,9 @@ checksum = "8c3c1a368f70d6cf7302d78f8f7093da241fb8e8807c05cc9e51a125895a6d5b" [[package]] name = "bigdecimal" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "51d712318a27c7150326677b321a5fa91b55f6d9034ffd67f20319e147d40cee" +checksum = "8f850665a0385e070b64c38d2354e6c104c8479c59868d1e48a0c13ee2c7a1c1" dependencies = [ "autocfg", "libm", @@ -779,22 +779,22 @@ checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c" [[package]] name = "bytemuck" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "94bbb0ad554ad961ddc5da507a12a29b14e4ae5bda06b19f575a3e6079d2e2ae" +checksum = "8334215b81e418a0a7bdb8ef0849474f40bb10c8b71f1c4ed315cff49f32494d" dependencies = [ "bytemuck_derive", ] [[package]] name = "bytemuck_derive" -version = "1.7.1" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0cc8b54b395f2fcfbb3d90c47b01c7f444d94d05bdeb775811dec868ac3bbc26" +checksum = "bcfcc3cd946cb52f0bbfdbbcfa2f4e24f75ebb6c0e1002f7c25904fada18b9ec" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -805,9 +805,9 @@ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b" [[package]] name = "bytes" -version = "1.7.2" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "428d9aa8fbc0670b7b8d6030a7fadd0f86151cae55e4dbbece15f3780a3dfaf3" +checksum = "9ac0150caa2ae65ca5bd83f25c7de183dea78d4d366469f148435e2acfbad0da" [[package]] name = "bytes-utils" @@ -845,9 +845,9 @@ dependencies = [ [[package]] name = "cc" -version = "1.1.24" +version = "1.1.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "812acba72f0a070b003d3697490d2b55b837230ae7c6c6497f05cc2ddbb8d938" +checksum = "c2e7962b54006dcfcc61cb72735f4d89bb97061dd6a7ed882ec6b8ee53714c6f" dependencies = [ "jobserver", "libc", @@ -924,18 +924,18 @@ dependencies = [ [[package]] name = "clap" -version = "4.5.19" +version = "4.5.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7be5744db7978a28d9df86a214130d106a89ce49644cbc4e3f0c22c3fba30615" +checksum = "b97f376d85a664d5837dbae44bf546e6477a679ff6610010f17276f686d867e8" dependencies = [ "clap_builder", ] [[package]] name = "clap_builder" -version = "4.5.19" +version = "4.5.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a5fbc17d3ef8278f55b282b2a2e75ae6f6c7d4bb70ed3d0382375104bfafdb4b" +checksum = "19bc80abd44e4bed93ca373a0704ccbd1b710dc5749406201bb018272808dc54" dependencies = [ "anstyle", "clap_lex", @@ -1212,9 +1212,9 @@ dependencies = [ [[package]] name = "dary_heap" -version = "0.3.6" +version = "0.3.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7762d17f1241643615821a8455a0b2c3e803784b058693d990b11f2dce25a0ca" +checksum = "04d2cd9c18b9f454ed67da600630b021a8a80bf33f8c95896ab33aaf1c26b728" [[package]] name = "der" @@ -1308,7 +1308,7 @@ dependencies = [ "once_cell", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -1390,9 +1390,9 @@ dependencies = [ [[package]] name = "float-cmp" -version = "0.9.0" +version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98de4bbd547a563b716d8dfa9aad1cb19bfab00f4fa09a6a4ed21dbcf44ce9c4" +checksum = "b09cf3155332e944990140d967ff5eceb70df778b34f77d8075db46e4704e6d8" dependencies = [ "num-traits", ] @@ -1436,9 +1436,9 @@ dependencies = [ [[package]] name = "futures" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "645c6916888f6cb6350d2550b80fb63e734897a8498abe35cfb732b6487804b0" +checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" dependencies = [ "futures-channel", "futures-core", @@ -1451,9 +1451,9 @@ dependencies = [ [[package]] name = "futures-channel" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" +checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" dependencies = [ "futures-core", "futures-sink", @@ -1461,15 +1461,15 @@ dependencies = [ [[package]] name = "futures-core" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" +checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" [[package]] name = "futures-executor" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a576fc72ae164fca6b9db127eaa9a9dda0d61316034f33a0a0d4eda41f02b01d" +checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" dependencies = [ "futures-core", "futures-task", @@ -1478,38 +1478,38 @@ dependencies = [ [[package]] name = "futures-io" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a44623e20b9681a318efdd71c299b6b222ed6f231972bfe2f224ebad6311f0c1" +checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" [[package]] name = "futures-macro" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "87750cf4b7a4c0625b1529e4c543c2182106e4dedc60a2a6455e00d212c489ac" +checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] name = "futures-sink" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" +checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" [[package]] name = "futures-task" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" +checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988" [[package]] name = "futures-util" -version = "0.3.30" +version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" +checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ "futures-channel", "futures-core", @@ -1558,9 +1558,9 @@ dependencies = [ [[package]] name = "gimli" -version = "0.31.0" +version = "0.31.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32085ea23f3234fc7846555e85283ba4de91e21016dc0455a16286d87a292d64" +checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f" [[package]] name = "glob" @@ -1792,9 +1792,9 @@ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4" [[package]] name = "hyper" -version = "0.14.30" +version = "0.14.31" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a152ddd61dfaec7273fe8419ab357f33aee0d914c5f4efbf0d96fa749eea5ec9" +checksum = "8c08302e8fa335b151b788c775ff56e7a03ae64ff85c548ee820fecb70356e85" dependencies = [ "bytes", "futures-channel", @@ -1816,9 +1816,9 @@ dependencies = [ [[package]] name = "hyper" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50dfd22e0e76d0f662d429a5f80fcaf3855009297eab6a0a9f8543834744ba05" +checksum = "bbbff0a806a4728c99295b254c8838933b5b082d75e3cb70c8dab21fdfbcfa9a" dependencies = [ "bytes", "futures-channel", @@ -1842,7 +1842,7 @@ checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" dependencies = [ "futures-util", "http 0.2.12", - "hyper 0.14.30", + "hyper 0.14.31", "log", "rustls 0.21.12", "rustls-native-certs 0.6.3", @@ -1858,9 +1858,9 @@ checksum = "08afdbb5c31130e3034af566421053ab03787c640246a446327f550d11bcb333" dependencies = [ "futures-util", "http 1.1.0", - "hyper 1.4.1", + "hyper 1.5.0", "hyper-util", - "rustls 0.23.13", + "rustls 0.23.15", "rustls-native-certs 0.8.0", "rustls-pki-types", "tokio", @@ -1879,7 +1879,7 @@ dependencies = [ "futures-util", "http 1.1.0", "http-body 1.0.1", - "hyper 1.4.1", + "hyper 1.5.0", "pin-project-lite", "socket2", "tokio", @@ -1945,9 +1945,9 @@ checksum = "f958d3d68f4167080a18141e10381e7634563984a537f2a49a30fd8e53ac5767" [[package]] name = "ipnet" -version = "2.10.0" +version = "2.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "187674a687eed5fe42285b40c6291f9a01517d415fad1c3cbc6a9f778af7fcd4" +checksum = "ddc24109865250148c2e0f3d25d4f0f479571723792d3802153c60922a4fb708" [[package]] name = "is-terminal" @@ -2021,9 +2021,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.70" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1868808506b929d7b0cfa8f75951347aa71bb21144b7791bae35d9bccfcfe37a" +checksum = "6a88f1bda2bd75b0452a14784937d796722fdebfe50df998aeb3f0b7603019a9" dependencies = [ "wasm-bindgen", ] @@ -2047,9 +2047,9 @@ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe" [[package]] name = "libc" -version = "0.2.159" +version = "0.2.161" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "561d97a539a36e26a9a5fad1ea11a3039a67714694aaa379433e580854bc3dc5" +checksum = "8e9489c2807c139ffd9c1794f4af0ebe86a828db53ecdc7fea2111d0fed085d1" [[package]] name = "libflate" @@ -2107,9 +2107,9 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.8" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058" +checksum = "a00419de735aac21d53b0de5ce2c03bd3627277cf471300f27ebc89f7d828047" [[package]] name = "libmimalloc-sys" @@ -2123,9 +2123,9 @@ dependencies = [ [[package]] name = "libz-ng-sys" -version = "1.1.16" +version = "1.1.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4436751a01da56f1277f323c80d584ffad94a3d14aecd959dd0dff75aa73a438" +checksum = "8f0f7295a34685977acb2e8cc8b08ee4a8dffd6cf278eeccddbe1ed55ba815d5" dependencies = [ "cmake", "libc", @@ -2155,11 +2155,11 @@ checksum = "a7a70ba024b9dc04c27ea2f0c0548feb474ec5c54bba33a7f72f873a39d07b24" [[package]] name = "lru" -version = "0.12.4" +version = "0.12.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37ee39891760e7d94734f6f63fedc29a2e4a152f836120753a72503f09fcf904" +checksum = "234cf4f4a04dc1f57e24b96cc0cd600cf2af460d4161ac5ecdd0af8e1f3b2a38" dependencies = [ - "hashbrown 0.14.5", + "hashbrown 0.15.0", ] [[package]] @@ -2483,9 +2483,9 @@ dependencies = [ [[package]] name = "object" -version = "0.36.4" +version = "0.36.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "084f1a5821ac4c651660a94a7153d27ac9d8a53736203f58b31945ded098070a" +checksum = "aedf0a2d09c573ed1d8d85b30c119153926a2b36dce0ab28322c09a117a4683e" dependencies = [ "memchr", ] @@ -2502,7 +2502,7 @@ dependencies = [ "chrono", "futures", "humantime", - "hyper 1.4.1", + "hyper 1.5.0", "itertools 0.13.0", "md-5", "parking_lot", @@ -2523,12 +2523,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.20.1" +version = "1.20.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "82881c4be219ab5faaf2ad5e5e5ecdff8c66bd7402ca3160975c93b24961afd1" -dependencies = [ - "portable-atomic", -] +checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775" [[package]] name = "oorandom" @@ -2637,9 +2634,9 @@ dependencies = [ [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "915a1e146535de9163f3987b8944ed8cf49a18bb0056bcebcdcece385cece4ff" [[package]] name = "pin-utils" @@ -3333,9 +3330,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.86" +version = "1.0.89" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" +checksum = "f139b0662de085916d1fb67d2b4169d1addddda1919e696f3252b740b629986e" dependencies = [ "unicode-ident", ] @@ -3449,7 +3446,7 @@ dependencies = [ "proc-macro2", "pyo3-macros-backend", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -3462,7 +3459,7 @@ dependencies = [ "proc-macro2", "pyo3-build-config", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -3503,7 +3500,7 @@ dependencies = [ "quinn-proto", "quinn-udp", "rustc-hash 2.0.0", - "rustls 0.23.13", + "rustls 0.23.15", "socket2", "thiserror", "tokio", @@ -3520,7 +3517,7 @@ dependencies = [ "rand", "ring", "rustc-hash 2.0.0", - "rustls 0.23.13", + "rustls 0.23.15", "slab", "thiserror", "tinyvec", @@ -3660,7 +3657,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "76009fbe0614077fc1a2ce255e3a1881a2e3a3527097d5dc6d8212c585e7e38b" dependencies = [ "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -3689,14 +3686,14 @@ checksum = "bcc303e793d3734489387d205e9b186fac9c6cfacedd98cbb2e8a5943595f3e6" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] name = "regex" -version = "1.11.0" +version = "1.11.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38200e5ee88914975b69f657f0801b6f6dccafd44fd9326302a4aaeecfacb1d8" +checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191" dependencies = [ "aho-corasick", "memchr", @@ -3748,7 +3745,7 @@ dependencies = [ "http 1.1.0", "http-body 1.0.1", "http-body-util", - "hyper 1.4.1", + "hyper 1.5.0", "hyper-rustls 0.27.3", "hyper-util", "ipnet", @@ -3759,7 +3756,7 @@ dependencies = [ "percent-encoding", "pin-project-lite", "quinn", - "rustls 0.23.13", + "rustls 0.23.15", "rustls-native-certs 0.8.0", "rustls-pemfile 2.2.0", "rustls-pki-types", @@ -3840,9 +3837,9 @@ dependencies = [ [[package]] name = "rustix" -version = "0.38.37" +version = "0.38.38" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8acb788b847c24f28525660c4d7758620a7210875711f79e7f663cc152726811" +checksum = "aa260229e6538e52293eeb577aabd09945a09d6d9cc0fc550ed7529056c2e32a" dependencies = [ "bitflags", "errno", @@ -3865,9 +3862,9 @@ dependencies = [ [[package]] name = "rustls" -version = "0.23.13" +version = "0.23.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f2dabaac7466917e566adb06783a81ca48944c6898a1b08b9374106dd671f4c8" +checksum = "5fbb44d7acc4e873d613422379f69f237a1b141928c02f6bc6ccfddddc2d7993" dependencies = [ "once_cell", "ring", @@ -3922,9 +3919,9 @@ dependencies = [ [[package]] name = "rustls-pki-types" -version = "1.9.0" +version = "1.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0e696e35370c65c9c541198af4543ccd580cf17fc25d8e05c5a242b202488c55" +checksum = "16f1201b3c9a7ee8039bcadc17b7e605e2945b27eee7631788c1bd2b0643674b" [[package]] name = "rustls-webpki" @@ -3949,9 +3946,9 @@ dependencies = [ [[package]] name = "rustversion" -version = "1.0.17" +version = "1.0.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955d28af4278de8121b7ebeb796b6a45735dc01436d898801014aced2773a3d6" +checksum = "0e819f2bc632f285be6d7cd36e25940d45b2391dd6d9b939e79de557f7014248" [[package]] name = "ryu" @@ -4016,9 +4013,9 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.24" +version = "0.1.26" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9aaafd5a2b6e3d657ff009d82fbd630b6bd54dd4eb06f21693925cdf80f9b8b" +checksum = "01227be5826fa0690321a2ba6c5cd57a19cf3f6a09e76973b58e61de6ab9d1c1" dependencies = [ "windows-sys 0.59.0", ] @@ -4084,9 +4081,9 @@ checksum = "61697e0a1c7e512e84a621326239844a24d8207b4669b41bc18b32ea5cbf988b" [[package]] name = "serde" -version = "1.0.210" +version = "1.0.213" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8e3592472072e6e22e0a54d5904d9febf8508f65fb8552499a1abc7d1078c3a" +checksum = "3ea7893ff5e2466df8d720bb615088341b295f849602c6956047f8f80f0e9bc1" dependencies = [ "serde_derive", ] @@ -4102,20 +4099,20 @@ dependencies = [ [[package]] name = "serde_derive" -version = "1.0.210" +version = "1.0.213" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "243902eda00fad750862fc144cea25caca5e20d615af0a81bee94ca738f1df1f" +checksum = "7e85ad2009c50b58e87caa8cd6dac16bdf511bbfb7af6c33df902396aa480fa5" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] name = "serde_json" -version = "1.0.128" +version = "1.0.132" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ff5456707a1de34e7e37f2a6fd3d3f808c318259cbd01ab6377795054b483d8" +checksum = "d726bfaff4b320266d395898905d0eba0345aae23b54aee3a737e260fd46db03" dependencies = [ "indexmap", "itoa", @@ -4185,9 +4182,9 @@ dependencies = [ [[package]] name = "simd-json" -version = "0.14.0" +version = "0.14.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05f0b376aada35f30a0012f5790e50aed62f91804a0682669aefdbe81c7fcb91" +checksum = "b1df0290e9bfe79ddd5ff8798ca887cd107b75353d2957efe9777296e17f26b5" dependencies = [ "ahash", "getrandom", @@ -4355,7 +4352,7 @@ dependencies = [ "proc-macro2", "quote", "rustversion", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -4377,9 +4374,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.79" +version = "2.0.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89132cd0bf050864e1d38dc3bbc07a0eb8e7530af26344d3d2bbbef83499f590" +checksum = "5023162dfcd14ef8f32034d8bcd4cc5ddc61ef7a247c024a33e24e1f24d21b56" dependencies = [ "proc-macro2", "quote", @@ -4435,22 +4432,22 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.64" +version = "1.0.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d50af8abc119fb8bb6dbabcfa89656f46f84aa0ac7688088608076ad2b459a84" +checksum = "5d11abd9594d9b38965ef50805c5e469ca9cc6f197f883f717e0269a3057b3d5" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.64" +version = "1.0.65" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "08904e7672f5eb876eaaf87e0ce17857500934f4981c4a0ab2b4aa98baac7fc3" +checksum = "ae71770322cbd277e69d762a16c444af02aa0575ac0d174f0b9562d3b37f8602" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -4510,9 +4507,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.40.0" +version = "1.41.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2b070231665d27ad9ec9b8df639893f46727666c6767db40317fbe920a5d998" +checksum = "145f3413504347a2be84393cc8a7d2fb4d863b375909ea59f2158261aa258bbb" dependencies = [ "backtrace", "bytes", @@ -4533,7 +4530,7 @@ checksum = "693d596312e88961bc67d7f1f97af8a70227d9f90c31bba5806eec004978d752" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -4552,7 +4549,7 @@ version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0c7bc40d0e5a97695bb96e27995cd3a08538541b0a846f65bba7a359f36700d4" dependencies = [ - "rustls 0.23.13", + "rustls 0.23.15", "rustls-pki-types", "tokio", ] @@ -4596,7 +4593,7 @@ checksum = "34704c8d6ebcbc939824180af020566b01a7c01f80641264eba0999f6c2b6be7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -4641,7 +4638,7 @@ checksum = "f9534daa9fd3ed0bd911d462a37f172228077e7abf18c18a5f67199d959205f8" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -4729,9 +4726,9 @@ checksum = "daf8dba3b7eb870caf1ddeed7bc9d2a049f3cfdfae7cb521b087cc33ae4c49da" [[package]] name = "uuid" -version = "1.10.0" +version = "1.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81dfa00651efa65069b0b6b651f4aaa31ba9e3c3ce0137aaad053604ee7e0314" +checksum = "f8c5f0a0af699448548ad1a2fbf920fb4bee257eae39953ba95cb84891a0446a" dependencies = [ "getrandom", "serde", @@ -4739,9 +4736,9 @@ dependencies = [ [[package]] name = "value-trait" -version = "0.10.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bcaa56177466248ba59d693a048c0959ddb67f1151b963f904306312548cf392" +checksum = "9170e001f458781e92711d2ad666110f153e4e50bfd5cbd02db6547625714187" dependencies = [ "float-cmp", "halfbrown", @@ -4788,9 +4785,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a82edfc16a6c469f5f44dc7b571814045d60404b55a0ee849f9bcfa2e63dd9b5" +checksum = "128d1e363af62632b8eb57219c8fd7877144af57558fb2ef0368d0087bddeb2e" dependencies = [ "cfg-if", "once_cell", @@ -4799,24 +4796,24 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9de396da306523044d3302746f1208fa71d7532227f15e347e2d93e4145dd77b" +checksum = "cb6dd4d3ca0ddffd1dd1c9c04f94b868c37ff5fac97c30b97cff2d74fce3a358" dependencies = [ "bumpalo", "log", "once_cell", "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-futures" -version = "0.4.43" +version = "0.4.45" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "61e9300f63a621e96ed275155c108eb6f843b6a26d053f122ab69724559dc8ed" +checksum = "cc7ec4f8827a71586374db3e87abdb5a2bb3a15afed140221307c3ec06b1f63b" dependencies = [ "cfg-if", "js-sys", @@ -4826,9 +4823,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "585c4c91a46b072c92e908d99cb1dcdf95c5218eeb6f3bf1efa991ee7a68cccf" +checksum = "e79384be7f8f5a9dd5d7167216f022090cf1f9ec128e6e6a482a2cb5c5422c56" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -4836,28 +4833,28 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "afc340c74d9005395cf9dd098506f7f44e38f2b4a21c6aaacf9a105ea5e1e836" +checksum = "26c6ab57572f7a24a4985830b120de1594465e5d500f24afe89e16b4e833ef68" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", "wasm-bindgen-backend", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.93" +version = "0.2.95" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c62a0a307cb4a311d3a07867860911ca130c3494e8c2719593806c08bc5d0484" +checksum = "65fc09f10666a9f147042251e0dda9c18f166ff7de300607007e96bdebc1068d" [[package]] name = "wasm-streams" -version = "0.4.1" +version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e072d4e72f700fb3443d8fe94a39315df013eef1104903cdb0a2abd322bbecd" +checksum = "15053d8d85c7eccdbefef60f06769760a563c7f0a9d6902a13d35c7800b0ad65" dependencies = [ "futures-util", "js-sys", @@ -4868,9 +4865,9 @@ dependencies = [ [[package]] name = "web-sys" -version = "0.3.70" +version = "0.3.72" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26fdeaafd9bd129f65e7c031593c24d62186301e0c72c8978fa1678be7d532c0" +checksum = "f6488b90108c040df0fe62fa815cbdee25124641df01814dd7282749234c6112" dependencies = [ "js-sys", "wasm-bindgen", @@ -4946,7 +4943,7 @@ checksum = "9107ddc059d5b6fbfbffdfa7a7fe3e22a226def0b2608f72e9d552763d3e1ad7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -4957,7 +4954,7 @@ checksum = "29bee4b38ea3cde66011baa44dba677c432a78593e202392d1e9070cf2a7fca7" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] @@ -5185,7 +5182,7 @@ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e" dependencies = [ "proc-macro2", "quote", - "syn 2.0.79", + "syn 2.0.85", ] [[package]] diff --git a/crates/polars-arrow/src/array/dictionary/iterator.rs b/crates/polars-arrow/src/array/dictionary/iterator.rs index 68e95ca86fed..af6ef539572d 100644 --- a/crates/polars-arrow/src/array/dictionary/iterator.rs +++ b/crates/polars-arrow/src/array/dictionary/iterator.rs @@ -21,7 +21,7 @@ impl<'a, K: DictionaryKey> DictionaryValuesIter<'a, K> { } } -impl<'a, K: DictionaryKey> Iterator for DictionaryValuesIter<'a, K> { +impl Iterator for DictionaryValuesIter<'_, K> { type Item = Box; #[inline] @@ -40,9 +40,9 @@ impl<'a, K: DictionaryKey> Iterator for DictionaryValuesIter<'a, K> { } } -unsafe impl<'a, K: DictionaryKey> TrustedLen for DictionaryValuesIter<'a, K> {} +unsafe impl TrustedLen for DictionaryValuesIter<'_, K> {} -impl<'a, K: DictionaryKey> DoubleEndedIterator for DictionaryValuesIter<'a, K> { +impl DoubleEndedIterator for DictionaryValuesIter<'_, K> { #[inline] fn next_back(&mut self) -> Option { if self.index == self.end { diff --git a/crates/polars-arrow/src/array/dictionary/typed_iterator.rs b/crates/polars-arrow/src/array/dictionary/typed_iterator.rs index 5257bde2cae0..d7e7637bf28d 100644 --- a/crates/polars-arrow/src/array/dictionary/typed_iterator.rs +++ b/crates/polars-arrow/src/array/dictionary/typed_iterator.rs @@ -117,11 +117,9 @@ impl<'a, K: DictionaryKey, V: DictValue> Iterator for DictionaryValuesIterTyped< } } -unsafe impl<'a, K: DictionaryKey, V: DictValue> TrustedLen for DictionaryValuesIterTyped<'a, K, V> {} +unsafe impl TrustedLen for DictionaryValuesIterTyped<'_, K, V> {} -impl<'a, K: DictionaryKey, V: DictValue> DoubleEndedIterator - for DictionaryValuesIterTyped<'a, K, V> -{ +impl DoubleEndedIterator for DictionaryValuesIterTyped<'_, K, V> { #[inline] fn next_back(&mut self) -> Option { if self.index == self.end { @@ -181,9 +179,9 @@ impl<'a, K: DictionaryKey, V: DictValue> Iterator for DictionaryIterTyped<'a, K, } } -unsafe impl<'a, K: DictionaryKey, V: DictValue> TrustedLen for DictionaryIterTyped<'a, K, V> {} +unsafe impl TrustedLen for DictionaryIterTyped<'_, K, V> {} -impl<'a, K: DictionaryKey, V: DictValue> DoubleEndedIterator for DictionaryIterTyped<'a, K, V> { +impl DoubleEndedIterator for DictionaryIterTyped<'_, K, V> { #[inline] fn next_back(&mut self) -> Option { if self.index == self.end { diff --git a/crates/polars-arrow/src/array/growable/null.rs b/crates/polars-arrow/src/array/growable/null.rs index c0b92e132819..e663fc31b8b4 100644 --- a/crates/polars-arrow/src/array/growable/null.rs +++ b/crates/polars-arrow/src/array/growable/null.rs @@ -23,7 +23,7 @@ impl GrowableNull { } } -impl<'a> Growable<'a> for GrowableNull { +impl Growable<'_> for GrowableNull { unsafe fn extend(&mut self, _: usize, _: usize, len: usize) { self.length += len; } diff --git a/crates/polars-arrow/src/array/iterator.rs b/crates/polars-arrow/src/array/iterator.rs index 59e71968fde7..5009442d5718 100644 --- a/crates/polars-arrow/src/array/iterator.rs +++ b/crates/polars-arrow/src/array/iterator.rs @@ -118,7 +118,7 @@ impl<'a, A: ArrayAccessor<'a> + ?Sized> Iterator for NonNullValuesIter<'a, A> { unsafe impl<'a, A: ArrayAccessor<'a> + ?Sized> TrustedLen for NonNullValuesIter<'a, A> {} -impl<'a, A: ?Sized> Clone for NonNullValuesIter<'a, A> { +impl Clone for NonNullValuesIter<'_, A> { fn clone(&self) -> Self { Self { accessor: self.accessor, diff --git a/crates/polars-arrow/src/array/map/iterator.rs b/crates/polars-arrow/src/array/map/iterator.rs index 558405ddc8de..79fc630cc520 100644 --- a/crates/polars-arrow/src/array/map/iterator.rs +++ b/crates/polars-arrow/src/array/map/iterator.rs @@ -22,7 +22,7 @@ impl<'a> MapValuesIter<'a> { } } -impl<'a> Iterator for MapValuesIter<'a> { +impl Iterator for MapValuesIter<'_> { type Item = Box; #[inline] @@ -43,9 +43,9 @@ impl<'a> Iterator for MapValuesIter<'a> { } } -unsafe impl<'a> TrustedLen for MapValuesIter<'a> {} +unsafe impl TrustedLen for MapValuesIter<'_> {} -impl<'a> DoubleEndedIterator for MapValuesIter<'a> { +impl DoubleEndedIterator for MapValuesIter<'_> { #[inline] fn next_back(&mut self) -> Option { if self.index == self.end { diff --git a/crates/polars-arrow/src/array/static_array_collect.rs b/crates/polars-arrow/src/array/static_array_collect.rs index 296d93502abe..9ff5ceb39361 100644 --- a/crates/polars-arrow/src/array/static_array_collect.rs +++ b/crates/polars-arrow/src/array/static_array_collect.rs @@ -417,10 +417,10 @@ impl IntoBytes for T { } } impl TrivialIntoBytes for Vec {} -impl<'a> TrivialIntoBytes for Cow<'a, [u8]> {} -impl<'a> TrivialIntoBytes for &'a [u8] {} +impl TrivialIntoBytes for Cow<'_, [u8]> {} +impl TrivialIntoBytes for &[u8] {} impl TrivialIntoBytes for String {} -impl<'a> TrivialIntoBytes for &'a str {} +impl TrivialIntoBytes for &str {} impl<'a> IntoBytes for Cow<'a, str> { type AsRefT = Cow<'a, [u8]>; fn into_bytes(self) -> Cow<'a, [u8]> { @@ -590,8 +590,8 @@ unsafe fn into_utf8array(arr: BinaryArray) -> Utf8Array { trait StrIntoBytes: IntoBytes {} impl StrIntoBytes for String {} -impl<'a> StrIntoBytes for &'a str {} -impl<'a> StrIntoBytes for Cow<'a, str> {} +impl StrIntoBytes for &str {} +impl StrIntoBytes for Cow<'_, str> {} impl ArrayFromIter for Utf8ViewArray { #[inline] diff --git a/crates/polars-arrow/src/array/struct_/iterator.rs b/crates/polars-arrow/src/array/struct_/iterator.rs index 4e89af3a6a7f..38a49f274cde 100644 --- a/crates/polars-arrow/src/array/struct_/iterator.rs +++ b/crates/polars-arrow/src/array/struct_/iterator.rs @@ -20,7 +20,7 @@ impl<'a> StructValueIter<'a> { } } -impl<'a> Iterator for StructValueIter<'a> { +impl Iterator for StructValueIter<'_> { type Item = Vec>; #[inline] @@ -48,9 +48,9 @@ impl<'a> Iterator for StructValueIter<'a> { } } -unsafe impl<'a> TrustedLen for StructValueIter<'a> {} +unsafe impl TrustedLen for StructValueIter<'_> {} -impl<'a> DoubleEndedIterator for StructValueIter<'a> { +impl DoubleEndedIterator for StructValueIter<'_> { #[inline] fn next_back(&mut self) -> Option { if self.index == self.end { diff --git a/crates/polars-arrow/src/array/union/iterator.rs b/crates/polars-arrow/src/array/union/iterator.rs index bdcf5825af6c..e93223e46c43 100644 --- a/crates/polars-arrow/src/array/union/iterator.rs +++ b/crates/polars-arrow/src/array/union/iterator.rs @@ -15,7 +15,7 @@ impl<'a> UnionIter<'a> { } } -impl<'a> Iterator for UnionIter<'a> { +impl Iterator for UnionIter<'_> { type Item = Box; #[inline] @@ -54,6 +54,6 @@ impl<'a> UnionArray { } } -impl<'a> std::iter::ExactSizeIterator for UnionIter<'a> {} +impl std::iter::ExactSizeIterator for UnionIter<'_> {} -unsafe impl<'a> TrustedLen for UnionIter<'a> {} +unsafe impl TrustedLen for UnionIter<'_> {} diff --git a/crates/polars-arrow/src/bitmap/bitmap_ops.rs b/crates/polars-arrow/src/bitmap/bitmap_ops.rs index 032c76710f66..ec9814e4fad3 100644 --- a/crates/polars-arrow/src/bitmap/bitmap_ops.rs +++ b/crates/polars-arrow/src/bitmap/bitmap_ops.rs @@ -338,7 +338,7 @@ impl PartialEq for Bitmap { } } -impl<'a, 'b> BitOr<&'b Bitmap> for &'a Bitmap { +impl<'b> BitOr<&'b Bitmap> for &Bitmap { type Output = Bitmap; fn bitor(self, rhs: &'b Bitmap) -> Bitmap { @@ -346,7 +346,7 @@ impl<'a, 'b> BitOr<&'b Bitmap> for &'a Bitmap { } } -impl<'a, 'b> BitAnd<&'b Bitmap> for &'a Bitmap { +impl<'b> BitAnd<&'b Bitmap> for &Bitmap { type Output = Bitmap; fn bitand(self, rhs: &'b Bitmap) -> Bitmap { @@ -354,7 +354,7 @@ impl<'a, 'b> BitAnd<&'b Bitmap> for &'a Bitmap { } } -impl<'a, 'b> BitXor<&'b Bitmap> for &'a Bitmap { +impl<'b> BitXor<&'b Bitmap> for &Bitmap { type Output = Bitmap; fn bitxor(self, rhs: &'b Bitmap) -> Bitmap { diff --git a/crates/polars-arrow/src/bitmap/iterator.rs b/crates/polars-arrow/src/bitmap/iterator.rs index bd48fb706c0a..84e0a2d7a985 100644 --- a/crates/polars-arrow/src/bitmap/iterator.rs +++ b/crates/polars-arrow/src/bitmap/iterator.rs @@ -58,7 +58,7 @@ impl<'a> TrueIdxIter<'a> { } } -impl<'a> Iterator for TrueIdxIter<'a> { +impl Iterator for TrueIdxIter<'_> { type Item = usize; #[inline] @@ -93,7 +93,7 @@ impl<'a> Iterator for TrueIdxIter<'a> { } } -unsafe impl<'a> TrustedLen for TrueIdxIter<'a> {} +unsafe impl TrustedLen for TrueIdxIter<'_> {} pub struct FastU32BitmapIter<'a> { bytes: &'a [u8], @@ -143,7 +143,7 @@ impl<'a> FastU32BitmapIter<'a> { } } -impl<'a> Iterator for FastU32BitmapIter<'a> { +impl Iterator for FastU32BitmapIter<'_> { type Item = u32; #[inline] @@ -171,7 +171,7 @@ impl<'a> Iterator for FastU32BitmapIter<'a> { } } -unsafe impl<'a> TrustedLen for FastU32BitmapIter<'a> {} +unsafe impl TrustedLen for FastU32BitmapIter<'_> {} pub struct FastU56BitmapIter<'a> { bytes: &'a [u8], @@ -222,7 +222,7 @@ impl<'a> FastU56BitmapIter<'a> { } } -impl<'a> Iterator for FastU56BitmapIter<'a> { +impl Iterator for FastU56BitmapIter<'_> { type Item = u64; #[inline] @@ -252,7 +252,7 @@ impl<'a> Iterator for FastU56BitmapIter<'a> { } } -unsafe impl<'a> TrustedLen for FastU56BitmapIter<'a> {} +unsafe impl TrustedLen for FastU56BitmapIter<'_> {} pub struct FastU64BitmapIter<'a> { bytes: &'a [u8], @@ -317,7 +317,7 @@ impl<'a> FastU64BitmapIter<'a> { } } -impl<'a> Iterator for FastU64BitmapIter<'a> { +impl Iterator for FastU64BitmapIter<'_> { type Item = u64; #[inline] @@ -349,7 +349,7 @@ impl<'a> Iterator for FastU64BitmapIter<'a> { } } -unsafe impl<'a> TrustedLen for FastU64BitmapIter<'a> {} +unsafe impl TrustedLen for FastU64BitmapIter<'_> {} /// This crates' equivalent of [`std::vec::IntoIter`] for [`Bitmap`]. #[derive(Debug, Clone)] diff --git a/crates/polars-arrow/src/bitmap/utils/iterator.rs b/crates/polars-arrow/src/bitmap/utils/iterator.rs index bba98ffbc704..243372599687 100644 --- a/crates/polars-arrow/src/bitmap/utils/iterator.rs +++ b/crates/polars-arrow/src/bitmap/utils/iterator.rs @@ -205,7 +205,7 @@ impl<'a> BitmapIter<'a> { } } -impl<'a> Iterator for BitmapIter<'a> { +impl Iterator for BitmapIter<'_> { type Item = bool; #[inline] @@ -238,7 +238,7 @@ impl<'a> Iterator for BitmapIter<'a> { } } -impl<'a> DoubleEndedIterator for BitmapIter<'a> { +impl DoubleEndedIterator for BitmapIter<'_> { #[inline] fn next_back(&mut self) -> Option { if self.rest_len > 0 { diff --git a/crates/polars-arrow/src/bitmap/utils/slice_iterator.rs b/crates/polars-arrow/src/bitmap/utils/slice_iterator.rs index f3083ad0b141..9f43a3dfe89a 100644 --- a/crates/polars-arrow/src/bitmap/utils/slice_iterator.rs +++ b/crates/polars-arrow/src/bitmap/utils/slice_iterator.rs @@ -74,7 +74,7 @@ impl<'a> SlicesIterator<'a> { } } -impl<'a> Iterator for SlicesIterator<'a> { +impl Iterator for SlicesIterator<'_> { type Item = (usize, usize); #[inline] diff --git a/crates/polars-arrow/src/ffi/array.rs b/crates/polars-arrow/src/ffi/array.rs index 4adf1b1c613c..5e179be6cca7 100644 --- a/crates/polars-arrow/src/ffi/array.rs +++ b/crates/polars-arrow/src/ffi/array.rs @@ -620,7 +620,7 @@ pub struct ArrowArrayChild<'a> { parent: InternalArrowArray, } -impl<'a> ArrowArrayRef for ArrowArrayChild<'a> { +impl ArrowArrayRef for ArrowArrayChild<'_> { /// the dtype as declared in the schema fn dtype(&self) -> &ArrowDataType { &self.dtype diff --git a/crates/polars-arrow/src/io/ipc/read/common.rs b/crates/polars-arrow/src/io/ipc/read/common.rs index fbb9155149bd..6b893c0e8ce3 100644 --- a/crates/polars-arrow/src/io/ipc/read/common.rs +++ b/crates/polars-arrow/src/io/ipc/read/common.rs @@ -42,7 +42,7 @@ impl<'a, A, I: Iterator> ProjectionIter<'a, A, I> { } } -impl<'a, A, I: Iterator> Iterator for ProjectionIter<'a, A, I> { +impl> Iterator for ProjectionIter<'_, A, I> { type Item = ProjectionResult; fn next(&mut self) -> Option { diff --git a/crates/polars-arrow/src/io/ipc/read/flight.rs b/crates/polars-arrow/src/io/ipc/read/flight.rs index aecf816c2a9a..8c35fa1cfd60 100644 --- a/crates/polars-arrow/src/io/ipc/read/flight.rs +++ b/crates/polars-arrow/src/io/ipc/read/flight.rs @@ -176,7 +176,7 @@ pub struct FlightStreamProducer<'a, R: AsyncRead + AsyncSeek + Unpin + Send> { reader: &'a mut R, } -impl<'a, R: AsyncRead + AsyncSeek + Unpin + Send> Drop for FlightStreamProducer<'a, R> { +impl Drop for FlightStreamProducer<'_, R> { fn drop(&mut self) { if let Some(p) = self.footer { unsafe { @@ -186,7 +186,7 @@ impl<'a, R: AsyncRead + AsyncSeek + Unpin + Send> Drop for FlightStreamProducer< } } -unsafe impl<'a, R: AsyncRead + AsyncSeek + Unpin + Send> Send for FlightStreamProducer<'a, R> {} +unsafe impl Send for FlightStreamProducer<'_, R> {} impl<'a, R: AsyncRead + AsyncSeek + Unpin + Send> FlightStreamProducer<'a, R> { pub async fn new(reader: &'a mut R) -> PolarsResult>> { @@ -414,7 +414,6 @@ mod test { } #[tokio::test] - #[allow(clippy::needless_return)] async fn test_file_flight_simple() { let path = &get_file_path(); let mut file = tokio::fs::File::open(path).await.unwrap(); @@ -427,7 +426,6 @@ mod test { } #[tokio::test] - #[allow(clippy::needless_return)] async fn test_file_flight_amortized() { let path = &get_file_path(); let mut file = File::open(path).await.unwrap(); diff --git a/crates/polars-arrow/src/io/ipc/write/common.rs b/crates/polars-arrow/src/io/ipc/write/common.rs index a49c7fdcd790..6fa1b5f0d8c4 100644 --- a/crates/polars-arrow/src/io/ipc/write/common.rs +++ b/crates/polars-arrow/src/io/ipc/write/common.rs @@ -482,7 +482,7 @@ pub struct Record<'a> { fields: Option>, } -impl<'a> Record<'a> { +impl Record<'_> { /// Get the IPC fields for this record. pub fn fields(&self) -> Option<&[IpcField]> { self.fields.as_deref() diff --git a/crates/polars-arrow/src/legacy/kernels/mod.rs b/crates/polars-arrow/src/legacy/kernels/mod.rs index b8676430ec52..89b31684beed 100644 --- a/crates/polars-arrow/src/legacy/kernels/mod.rs +++ b/crates/polars-arrow/src/legacy/kernels/mod.rs @@ -137,7 +137,7 @@ impl<'a> MaskedSlicesIterator<'a> { } } -impl<'a> Iterator for MaskedSlicesIterator<'a> { +impl Iterator for MaskedSlicesIterator<'_> { type Item = (usize, usize); fn next(&mut self) -> Option { @@ -209,7 +209,7 @@ impl<'a> BinaryMaskedSliceIterator<'a> { } } -impl<'a> Iterator for BinaryMaskedSliceIterator<'a> { +impl Iterator for BinaryMaskedSliceIterator<'_> { type Item = (usize, usize, bool); fn next(&mut self) -> Option { diff --git a/crates/polars-arrow/src/legacy/kernels/rolling/nulls/min_max.rs b/crates/polars-arrow/src/legacy/kernels/rolling/nulls/min_max.rs index 52039fe77572..7f0c65d42bd7 100644 --- a/crates/polars-arrow/src/legacy/kernels/rolling/nulls/min_max.rs +++ b/crates/polars-arrow/src/legacy/kernels/rolling/nulls/min_max.rs @@ -25,7 +25,7 @@ pub struct SortedMinMax<'a, T: NativeType> { null_count: usize, } -impl<'a, T: NativeType> SortedMinMax<'a, T> { +impl SortedMinMax<'_, T> { fn count_nulls(&self, start: usize, end: usize) -> usize { let (bytes, offset, _) = self.validity.as_slice(); count_zeros(bytes, offset + start, end - start) diff --git a/crates/polars-arrow/src/legacy/kernels/rolling/nulls/sum.rs b/crates/polars-arrow/src/legacy/kernels/rolling/nulls/sum.rs index d1392ef7cb50..599bdb241b07 100644 --- a/crates/polars-arrow/src/legacy/kernels/rolling/nulls/sum.rs +++ b/crates/polars-arrow/src/legacy/kernels/rolling/nulls/sum.rs @@ -9,7 +9,7 @@ pub struct SumWindow<'a, T> { pub(super) null_count: usize, } -impl<'a, T: NativeType + IsFloat + Add + Sub> SumWindow<'a, T> { +impl + Sub> SumWindow<'_, T> { // compute sum from the entire window unsafe fn compute_sum_and_null_count(&mut self, start: usize, end: usize) -> Option { let mut sum = None; diff --git a/crates/polars-arrow/src/legacy/kernels/rolling/nulls/variance.rs b/crates/polars-arrow/src/legacy/kernels/rolling/nulls/variance.rs index ee97d4cb15a3..8252c8931c4f 100644 --- a/crates/polars-arrow/src/legacy/kernels/rolling/nulls/variance.rs +++ b/crates/polars-arrow/src/legacy/kernels/rolling/nulls/variance.rs @@ -9,8 +9,8 @@ pub(super) struct SumSquaredWindow<'a, T> { null_count: usize, } -impl<'a, T: NativeType + IsFloat + Add + Sub + Mul> - SumSquaredWindow<'a, T> +impl + Sub + Mul> + SumSquaredWindow<'_, T> { // compute sum from the entire window unsafe fn compute_sum_and_null_count(&mut self, start: usize, end: usize) -> Option { diff --git a/crates/polars-arrow/src/legacy/kernels/rolling/quantile_filter.rs b/crates/polars-arrow/src/legacy/kernels/rolling/quantile_filter.rs index 0b5fb4d97e86..c616310ee568 100644 --- a/crates/polars-arrow/src/legacy/kernels/rolling/quantile_filter.rs +++ b/crates/polars-arrow/src/legacy/kernels/rolling/quantile_filter.rs @@ -32,7 +32,7 @@ struct Block<'a, A> { nulls_in_window: usize, } -impl<'a, A> Debug for Block<'a, A> +impl Debug for Block<'_, A> where A: Indexable, A::Item: Debug + Copy, @@ -443,7 +443,7 @@ where } } -impl<'a, A> LenGet for BlockUnion<'a, A> +impl LenGet for BlockUnion<'_, A> where A: Indexable + Bounded + NullCount + Clone, ::Item: TotalOrd + Copy + Debug, diff --git a/crates/polars-arrow/src/storage.rs b/crates/polars-arrow/src/storage.rs index 76116f917316..ddde815b5b10 100644 --- a/crates/polars-arrow/src/storage.rs +++ b/crates/polars-arrow/src/storage.rs @@ -147,7 +147,7 @@ pub struct SharedStorageAsVecMut<'a, T> { vec: ManuallyDrop>, } -impl<'a, T> Deref for SharedStorageAsVecMut<'a, T> { +impl Deref for SharedStorageAsVecMut<'_, T> { type Target = Vec; fn deref(&self) -> &Self::Target { @@ -155,13 +155,13 @@ impl<'a, T> Deref for SharedStorageAsVecMut<'a, T> { } } -impl<'a, T> DerefMut for SharedStorageAsVecMut<'a, T> { +impl DerefMut for SharedStorageAsVecMut<'_, T> { fn deref_mut(&mut self) -> &mut Self::Target { &mut self.vec } } -impl<'a, T> Drop for SharedStorageAsVecMut<'a, T> { +impl Drop for SharedStorageAsVecMut<'_, T> { fn drop(&mut self) { unsafe { // Restore the SharedStorage. diff --git a/crates/polars-core/src/chunked_array/from_iterator.rs b/crates/polars-core/src/chunked_array/from_iterator.rs index 5d784fb51fd9..ba9e8d1e6ccc 100644 --- a/crates/polars-core/src/chunked_array/from_iterator.rs +++ b/crates/polars-core/src/chunked_array/from_iterator.rs @@ -81,12 +81,12 @@ impl PolarsAsRef for &str {} // &["foo", "bar"] impl PolarsAsRef for &&str {} -impl<'a> PolarsAsRef for Cow<'a, str> {} +impl PolarsAsRef for Cow<'_, str> {} impl PolarsAsRef<[u8]> for Vec {} impl PolarsAsRef<[u8]> for &[u8] {} // TODO: remove! impl PolarsAsRef<[u8]> for &&[u8] {} -impl<'a> PolarsAsRef<[u8]> for Cow<'a, [u8]> {} +impl PolarsAsRef<[u8]> for Cow<'_, [u8]> {} impl FromIterator for StringChunked where diff --git a/crates/polars-core/src/chunked_array/iterator/mod.rs b/crates/polars-core/src/chunked_array/iterator/mod.rs index 728ffc5a8cff..a87d888968f3 100644 --- a/crates/polars-core/src/chunked_array/iterator/mod.rs +++ b/crates/polars-core/src/chunked_array/iterator/mod.rs @@ -25,7 +25,7 @@ pub trait PolarsIterator: ExactSizeIterator + DoubleEndedIterator + Send + Sync + TrustedLen { } -unsafe impl<'a, I> TrustedLen for Box + 'a> {} +unsafe impl TrustedLen for Box + '_> {} /// Implement [`PolarsIterator`] for every iterator that implements the needed traits. impl PolarsIterator for T where @@ -79,7 +79,7 @@ impl<'a> BoolIterNoNull<'a> { } } -impl<'a> Iterator for BoolIterNoNull<'a> { +impl Iterator for BoolIterNoNull<'_> { type Item = bool; fn next(&mut self) -> Option { @@ -100,7 +100,7 @@ impl<'a> Iterator for BoolIterNoNull<'a> { } } -impl<'a> DoubleEndedIterator for BoolIterNoNull<'a> { +impl DoubleEndedIterator for BoolIterNoNull<'_> { fn next_back(&mut self) -> Option { if self.current_end == self.current { None @@ -112,7 +112,7 @@ impl<'a> DoubleEndedIterator for BoolIterNoNull<'a> { } /// all arrays have known size. -impl<'a> ExactSizeIterator for BoolIterNoNull<'a> {} +impl ExactSizeIterator for BoolIterNoNull<'_> {} impl BooleanChunked { #[allow(clippy::wrong_self_convention)] @@ -339,7 +339,7 @@ impl<'a> FixedSizeListIterNoNull<'a> { } #[cfg(feature = "dtype-array")] -impl<'a> Iterator for FixedSizeListIterNoNull<'a> { +impl Iterator for FixedSizeListIterNoNull<'_> { type Item = Series; fn next(&mut self) -> Option { @@ -367,7 +367,7 @@ impl<'a> Iterator for FixedSizeListIterNoNull<'a> { } #[cfg(feature = "dtype-array")] -impl<'a> DoubleEndedIterator for FixedSizeListIterNoNull<'a> { +impl DoubleEndedIterator for FixedSizeListIterNoNull<'_> { fn next_back(&mut self) -> Option { if self.current_end == self.current { None @@ -388,7 +388,7 @@ impl<'a> DoubleEndedIterator for FixedSizeListIterNoNull<'a> { /// all arrays have known size. #[cfg(feature = "dtype-array")] -impl<'a> ExactSizeIterator for FixedSizeListIterNoNull<'a> {} +impl ExactSizeIterator for FixedSizeListIterNoNull<'_> {} #[cfg(feature = "dtype-array")] impl ArrayChunked { diff --git a/crates/polars-core/src/chunked_array/list/iterator.rs b/crates/polars-core/src/chunked_array/list/iterator.rs index b575dcdf5a65..7a7434b5f931 100644 --- a/crates/polars-core/src/chunked_array/list/iterator.rs +++ b/crates/polars-core/src/chunked_array/list/iterator.rs @@ -18,7 +18,7 @@ pub struct AmortizedListIter<'a, I: Iterator>> { inner_dtype: DataType, } -impl<'a, I: Iterator>> AmortizedListIter<'a, I> { +impl>> AmortizedListIter<'_, I> { pub(crate) unsafe fn new( len: usize, series_container: Series, @@ -37,7 +37,7 @@ impl<'a, I: Iterator>> AmortizedListIter<'a, I> { } } -impl<'a, I: Iterator>> Iterator for AmortizedListIter<'a, I> { +impl>> Iterator for AmortizedListIter<'_, I> { type Item = Option; fn next(&mut self) -> Option { @@ -106,8 +106,8 @@ impl<'a, I: Iterator>> Iterator for AmortizedListIter<'a // # Safety // we correctly implemented size_hint -unsafe impl<'a, I: Iterator>> TrustedLen for AmortizedListIter<'a, I> {} -impl<'a, I: Iterator>> ExactSizeIterator for AmortizedListIter<'a, I> {} +unsafe impl>> TrustedLen for AmortizedListIter<'_, I> {} +impl>> ExactSizeIterator for AmortizedListIter<'_, I> {} impl ListChunked { /// This is an iterator over a [`ListChunked`] that saves allocations. diff --git a/crates/polars-core/src/chunked_array/logical/categorical/mod.rs b/crates/polars-core/src/chunked_array/logical/categorical/mod.rs index d740455777c4..8ccd455e4bd0 100644 --- a/crates/polars-core/src/chunked_array/logical/categorical/mod.rs +++ b/crates/polars-core/src/chunked_array/logical/categorical/mod.rs @@ -443,7 +443,7 @@ pub struct CatIter<'a> { iter: Box> + 'a>, } -unsafe impl<'a> TrustedLen for CatIter<'a> {} +unsafe impl TrustedLen for CatIter<'_> {} impl<'a> Iterator for CatIter<'a> { type Item = Option<&'a str>; @@ -463,7 +463,7 @@ impl<'a> Iterator for CatIter<'a> { } } -impl<'a> ExactSizeIterator for CatIter<'a> {} +impl ExactSizeIterator for CatIter<'_> {} #[cfg(test)] mod test { diff --git a/crates/polars-core/src/chunked_array/object/iterator.rs b/crates/polars-core/src/chunked_array/object/iterator.rs index 7a5c6e00b590..7abb9c46f4ee 100644 --- a/crates/polars-core/src/chunked_array/object/iterator.rs +++ b/crates/polars-core/src/chunked_array/object/iterator.rs @@ -54,7 +54,7 @@ impl<'a, T: PolarsObject> std::iter::Iterator for ObjectIter<'a, T> { } } -impl<'a, T: PolarsObject> std::iter::DoubleEndedIterator for ObjectIter<'a, T> { +impl std::iter::DoubleEndedIterator for ObjectIter<'_, T> { fn next_back(&mut self) -> Option { if self.current_end == self.current { None @@ -75,7 +75,7 @@ impl<'a, T: PolarsObject> std::iter::DoubleEndedIterator for ObjectIter<'a, T> { } /// all arrays have known size. -impl<'a, T: PolarsObject> std::iter::ExactSizeIterator for ObjectIter<'a, T> {} +impl std::iter::ExactSizeIterator for ObjectIter<'_, T> {} impl<'a, T: PolarsObject> IntoIterator for &'a ObjectArray { type Item = Option<&'a T>; diff --git a/crates/polars-core/src/datatypes/any_value.rs b/crates/polars-core/src/datatypes/any_value.rs index edf76969e976..a1a87e3001bd 100644 --- a/crates/polars-core/src/datatypes/any_value.rs +++ b/crates/polars-core/src/datatypes/any_value.rs @@ -854,13 +854,13 @@ impl AnyValue<'_> { } } -impl<'a> Hash for AnyValue<'a> { +impl Hash for AnyValue<'_> { fn hash(&self, state: &mut H) { self.hash_impl(state, false) } } -impl<'a> Eq for AnyValue<'a> {} +impl Eq for AnyValue<'_> {} impl<'a, T> From> for AnyValue<'a> where diff --git a/crates/polars-core/src/frame/group_by/proxy.rs b/crates/polars-core/src/frame/group_by/proxy.rs index d1c04162b7b9..63b1a8022108 100644 --- a/crates/polars-core/src/frame/group_by/proxy.rs +++ b/crates/polars-core/src/frame/group_by/proxy.rs @@ -546,7 +546,7 @@ pub enum GroupsIndicator<'a> { Slice([IdxSize; 2]), } -impl<'a> GroupsIndicator<'a> { +impl GroupsIndicator<'_> { pub fn len(&self) -> usize { match self { GroupsIndicator::Idx(g) => g.1.len(), diff --git a/crates/polars-core/src/frame/mod.rs b/crates/polars-core/src/frame/mod.rs index 6be57d1e7f49..0d4230ff3f91 100644 --- a/crates/polars-core/src/frame/mod.rs +++ b/crates/polars-core/src/frame/mod.rs @@ -3310,7 +3310,7 @@ pub struct RecordBatchIter<'a> { parallel: bool, } -impl<'a> Iterator for RecordBatchIter<'a> { +impl Iterator for RecordBatchIter<'_> { type Item = RecordBatch; fn next(&mut self) -> Option { diff --git a/crates/polars-core/src/series/mod.rs b/crates/polars-core/src/series/mod.rs index 38cb14f3a0c8..fadd2b4f570f 100644 --- a/crates/polars-core/src/series/mod.rs +++ b/crates/polars-core/src/series/mod.rs @@ -1003,7 +1003,7 @@ fn equal_outer_type(dtype: &DataType) -> bool { } } -impl<'a, T> AsRef> for dyn SeriesTrait + 'a +impl AsRef> for dyn SeriesTrait + '_ where T: 'static + PolarsDataType, { @@ -1020,7 +1020,7 @@ where } } -impl<'a, T> AsMut> for dyn SeriesTrait + 'a +impl AsMut> for dyn SeriesTrait + '_ where T: 'static + PolarsDataType, { diff --git a/crates/polars-core/src/series/series_trait.rs b/crates/polars-core/src/series/series_trait.rs index 14a0752eae1e..0352343baa82 100644 --- a/crates/polars-core/src/series/series_trait.rs +++ b/crates/polars-core/src/series/series_trait.rs @@ -613,7 +613,7 @@ pub trait SeriesTrait: } } -impl<'a> (dyn SeriesTrait + 'a) { +impl (dyn SeriesTrait + '_) { pub fn unpack(&self) -> PolarsResult<&ChunkedArray> where N: 'static + PolarsDataType, diff --git a/crates/polars-expr/src/expressions/group_iter.rs b/crates/polars-expr/src/expressions/group_iter.rs index 6b1d54d0ac13..b42851e49d2a 100644 --- a/crates/polars-expr/src/expressions/group_iter.rs +++ b/crates/polars-expr/src/expressions/group_iter.rs @@ -4,7 +4,7 @@ use polars_core::series::amortized_iter::AmortSeries; use super::*; -impl<'a> AggregationContext<'a> { +impl AggregationContext<'_> { pub(super) fn iter_groups( &mut self, keep_names: bool, diff --git a/crates/polars-io/src/csv/read/read_impl.rs b/crates/polars-io/src/csv/read/read_impl.rs index 520f6bee729d..52f29ee0a128 100644 --- a/crates/polars-io/src/csv/read/read_impl.rs +++ b/crates/polars-io/src/csv/read/read_impl.rs @@ -126,7 +126,7 @@ pub(crate) struct CoreReader<'a> { truncate_ragged_lines: bool, } -impl<'a> fmt::Debug for CoreReader<'a> { +impl fmt::Debug for CoreReader<'_> { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("Reader") .field("schema", &self.schema) diff --git a/crates/polars-io/src/csv/read/read_impl/batched.rs b/crates/polars-io/src/csv/read/read_impl/batched.rs index 3bf6e2dd4e32..90e0b4e4e37c 100644 --- a/crates/polars-io/src/csv/read/read_impl/batched.rs +++ b/crates/polars-io/src/csv/read/read_impl/batched.rs @@ -66,7 +66,7 @@ struct ChunkOffsetIter<'a> { eol_char: u8, } -impl<'a> Iterator for ChunkOffsetIter<'a> { +impl Iterator for ChunkOffsetIter<'_> { type Item = (usize, usize); fn next(&mut self) -> Option { @@ -209,7 +209,7 @@ pub struct BatchedCsvReader<'a> { decimal_comma: bool, } -impl<'a> BatchedCsvReader<'a> { +impl BatchedCsvReader<'_> { pub fn next_batches(&mut self, n: usize) -> PolarsResult>> { if n == 0 || self.remaining == 0 { return Ok(None); diff --git a/crates/polars-io/src/json/mod.rs b/crates/polars-io/src/json/mod.rs index 432efca38360..df2ff8bb9c28 100644 --- a/crates/polars-io/src/json/mod.rs +++ b/crates/polars-io/src/json/mod.rs @@ -236,7 +236,7 @@ pub fn remove_bom(bytes: &[u8]) -> PolarsResult<&[u8]> { Ok(bytes) } } -impl<'a, R> SerReader for JsonReader<'a, R> +impl SerReader for JsonReader<'_, R> where R: MmapBytesReader, { diff --git a/crates/polars-io/src/ndjson/buffer.rs b/crates/polars-io/src/ndjson/buffer.rs index 2bb2a028f1ca..1c9938979af5 100644 --- a/crates/polars-io/src/ndjson/buffer.rs +++ b/crates/polars-io/src/ndjson/buffer.rs @@ -12,9 +12,9 @@ use simd_json::{BorrowedValue as Value, KnownKey, StaticNode}; #[derive(Debug, Clone, PartialEq)] pub(crate) struct BufferKey<'a>(pub(crate) KnownKey<'a>); -impl<'a> Eq for BufferKey<'a> {} +impl Eq for BufferKey<'_> {} -impl<'a> Hash for BufferKey<'a> { +impl Hash for BufferKey<'_> { fn hash(&self, state: &mut H) { self.0.key().hash(state) } diff --git a/crates/polars-io/src/ndjson/core.rs b/crates/polars-io/src/ndjson/core.rs index a72b4ccf7038..2fabd7dcd589 100644 --- a/crates/polars-io/src/ndjson/core.rs +++ b/crates/polars-io/src/ndjson/core.rs @@ -133,7 +133,7 @@ where } } -impl<'a> JsonLineReader<'a, File> { +impl JsonLineReader<'_, File> { /// This is the recommended way to create a json reader as this allows for fastest parsing. pub fn from_path>(path: P) -> PolarsResult { let path = crate::resolve_homedir(&path.into()); @@ -141,7 +141,7 @@ impl<'a> JsonLineReader<'a, File> { Ok(Self::new(f).with_path(Some(path))) } } -impl<'a, R> SerReader for JsonLineReader<'a, R> +impl SerReader for JsonLineReader<'_, R> where R: MmapBytesReader, { diff --git a/crates/polars-io/src/path_utils/mod.rs b/crates/polars-io/src/path_utils/mod.rs index 1795cda6ebd0..71c59fecb31d 100644 --- a/crates/polars-io/src/path_utils/mod.rs +++ b/crates/polars-io/src/path_utils/mod.rs @@ -99,7 +99,7 @@ struct HiveIdxTracker<'a> { check_directory_level: bool, } -impl<'a> HiveIdxTracker<'a> { +impl HiveIdxTracker<'_> { fn update(&mut self, i: usize, path_idx: usize) -> PolarsResult<()> { let check_directory_level = self.check_directory_level; let paths = self.paths; diff --git a/crates/polars-json/src/json/write/mod.rs b/crates/polars-json/src/json/write/mod.rs index a23b245b68b2..6796ef7436bb 100644 --- a/crates/polars-json/src/json/write/mod.rs +++ b/crates/polars-json/src/json/write/mod.rs @@ -101,7 +101,7 @@ impl<'a> RecordSerializer<'a> { } } -impl<'a> FallibleStreamingIterator for RecordSerializer<'a> { +impl FallibleStreamingIterator for RecordSerializer<'_> { type Item = [u8]; type Error = PolarsError; diff --git a/crates/polars-parquet/src/arrow/read/deserialize/binview.rs b/crates/polars-parquet/src/arrow/read/deserialize/binview.rs index 6777f7e639c9..86e46756788a 100644 --- a/crates/polars-parquet/src/arrow/read/deserialize/binview.rs +++ b/crates/polars-parquet/src/arrow/read/deserialize/binview.rs @@ -362,7 +362,7 @@ impl DeltaGatherer for StatGatherer { } } -impl<'a, 'b> BatchableCollector<(), MutableBinaryViewArray<[u8]>> for &mut DeltaCollector<'a, 'b> { +impl BatchableCollector<(), MutableBinaryViewArray<[u8]>> for &mut DeltaCollector<'_, '_> { fn reserve(target: &mut MutableBinaryViewArray<[u8]>, n: usize) { target.reserve(n); } @@ -394,7 +394,7 @@ impl<'a, 'b> BatchableCollector<(), MutableBinaryViewArray<[u8]>> for &mut Delta } } -impl<'a, 'b> DeltaCollector<'a, 'b> { +impl DeltaCollector<'_, '_> { pub fn flush(&mut self, target: &mut MutableBinaryViewArray<[u8]>) { if !self.pushed_lengths.is_empty() { let start_bytes_len = target.total_bytes_len(); @@ -428,7 +428,7 @@ impl<'a, 'b> DeltaCollector<'a, 'b> { } } -impl<'a, 'b> BatchableCollector<(), MutableBinaryViewArray<[u8]>> for DeltaBytesCollector<'a, 'b> { +impl BatchableCollector<(), MutableBinaryViewArray<[u8]>> for DeltaBytesCollector<'_, '_> { fn reserve(target: &mut MutableBinaryViewArray<[u8]>, n: usize) { target.reserve(n); } @@ -621,7 +621,7 @@ impl utils::Decoder for BinViewDecoder { max_length: &'b mut usize, } - impl<'a, 'b> BatchableCollector<(), MutableBinaryViewArray<[u8]>> for Collector<'a, 'b> { + impl BatchableCollector<(), MutableBinaryViewArray<[u8]>> for Collector<'_, '_> { fn reserve(target: &mut MutableBinaryViewArray<[u8]>, n: usize) { target.reserve(n); } @@ -709,7 +709,7 @@ impl utils::Decoder for BinViewDecoder { ) -> ParquetResult<()> { struct DictionaryTranslator<'a>(&'a [View]); - impl<'a> HybridRleGatherer for DictionaryTranslator<'a> { + impl HybridRleGatherer for DictionaryTranslator<'_> { type Target = MutableBinaryViewArray<[u8]>; fn target_reserve(&self, target: &mut Self::Target, n: usize) { @@ -803,7 +803,7 @@ impl utils::Decoder for BinViewDecoder { translator: DictionaryTranslator<'b>, } - impl<'a, 'b> BatchableCollector<(), MutableBinaryViewArray<[u8]>> for Collector<'a, 'b> { + impl BatchableCollector<(), MutableBinaryViewArray<[u8]>> for Collector<'_, '_> { fn reserve(target: &mut MutableBinaryViewArray<[u8]>, n: usize) { target.reserve(n); } diff --git a/crates/polars-parquet/src/arrow/read/deserialize/boolean.rs b/crates/polars-parquet/src/arrow/read/deserialize/boolean.rs index af2e504d2646..51026f483bd7 100644 --- a/crates/polars-parquet/src/arrow/read/deserialize/boolean.rs +++ b/crates/polars-parquet/src/arrow/read/deserialize/boolean.rs @@ -161,7 +161,7 @@ impl HybridRleGatherer for BitmapGatherer { // @TODO: The slice impl here can speed some stuff up } struct BitmapCollector<'a, 'b>(&'b mut HybridRleDecoder<'a>); -impl<'a, 'b> BatchableCollector for BitmapCollector<'a, 'b> { +impl BatchableCollector for BitmapCollector<'_, '_> { fn reserve(target: &mut MutableBitmap, n: usize) { target.reserve(n); } diff --git a/crates/polars-parquet/src/arrow/read/deserialize/dictionary.rs b/crates/polars-parquet/src/arrow/read/deserialize/dictionary.rs index de2bfe2e47f3..478c7cca0f2e 100644 --- a/crates/polars-parquet/src/arrow/read/deserialize/dictionary.rs +++ b/crates/polars-parquet/src/arrow/read/deserialize/dictionary.rs @@ -184,7 +184,7 @@ pub(crate) struct DictArrayTranslator { dict_size: usize, } -impl<'a, 'b, K: DictionaryKey> BatchableCollector<(), Vec> for DictArrayCollector<'a, 'b> { +impl BatchableCollector<(), Vec> for DictArrayCollector<'_, '_> { fn reserve(target: &mut Vec, n: usize) { target.reserve(n); } diff --git a/crates/polars-parquet/src/arrow/read/deserialize/fixed_size_binary.rs b/crates/polars-parquet/src/arrow/read/deserialize/fixed_size_binary.rs index 3825d528c8f5..5657a20dd151 100644 --- a/crates/polars-parquet/src/arrow/read/deserialize/fixed_size_binary.rs +++ b/crates/polars-parquet/src/arrow/read/deserialize/fixed_size_binary.rs @@ -154,7 +154,7 @@ impl Decoder for BinaryDecoder { size: usize, } - impl<'a, 'b> BatchableCollector<(), Vec> for FixedSizeBinaryCollector<'a, 'b> { + impl BatchableCollector<(), Vec> for FixedSizeBinaryCollector<'_, '_> { fn reserve(target: &mut Vec, n: usize) { target.reserve(n); } diff --git a/crates/polars-parquet/src/arrow/read/deserialize/nested_utils.rs b/crates/polars-parquet/src/arrow/read/deserialize/nested_utils.rs index a622153dfca8..d37a6d4bf3b1 100644 --- a/crates/polars-parquet/src/arrow/read/deserialize/nested_utils.rs +++ b/crates/polars-parquet/src/arrow/read/deserialize/nested_utils.rs @@ -215,8 +215,8 @@ pub struct BatchedNestedDecoder<'a, 'b, 'c, D: utils::NestedDecoder> { decoder: &'c mut D, } -impl<'a, 'b, 'c, D: utils::NestedDecoder> BatchableCollector<(), D::DecodedState> - for BatchedNestedDecoder<'a, 'b, 'c, D> +impl BatchableCollector<(), D::DecodedState> + for BatchedNestedDecoder<'_, '_, '_, D> { fn reserve(_target: &mut D::DecodedState, _n: usize) { unreachable!() diff --git a/crates/polars-parquet/src/arrow/read/deserialize/primitive/mod.rs b/crates/polars-parquet/src/arrow/read/deserialize/primitive/mod.rs index 54ed87c6b42b..5539595fda48 100644 --- a/crates/polars-parquet/src/arrow/read/deserialize/primitive/mod.rs +++ b/crates/polars-parquet/src/arrow/read/deserialize/primitive/mod.rs @@ -125,8 +125,8 @@ where pub(crate) _pd: std::marker::PhantomData, } -impl<'a, 'b, P, T, D: DecoderFunction> BatchableCollector<(), Vec> - for PlainDecoderFnCollector<'a, 'b, P, T, D> +impl> BatchableCollector<(), Vec> + for PlainDecoderFnCollector<'_, '_, P, T, D> where T: NativeType, P: ParquetNativeType, @@ -239,7 +239,7 @@ where } } -impl<'a, 'b, P, T, D> BatchableCollector<(), Vec> for DeltaCollector<'a, 'b, P, T, D> +impl BatchableCollector<(), Vec> for DeltaCollector<'_, '_, P, T, D> where T: NativeType, P: ParquetNativeType, diff --git a/crates/polars-parquet/src/arrow/read/deserialize/utils/array_chunks.rs b/crates/polars-parquet/src/arrow/read/deserialize/utils/array_chunks.rs index 0882cbed5cb0..f66544ee3183 100644 --- a/crates/polars-parquet/src/arrow/read/deserialize/utils/array_chunks.rs +++ b/crates/polars-parquet/src/arrow/read/deserialize/utils/array_chunks.rs @@ -47,4 +47,4 @@ impl<'a, P: ParquetNativeType> Iterator for ArrayChunks<'a, P> { } } -impl<'a, P: ParquetNativeType> ExactSizeIterator for ArrayChunks<'a, P> {} +impl ExactSizeIterator for ArrayChunks<'_, P> {} diff --git a/crates/polars-parquet/src/arrow/read/deserialize/utils/mod.rs b/crates/polars-parquet/src/arrow/read/deserialize/utils/mod.rs index dba00fc97930..7c6cf840bdce 100644 --- a/crates/polars-parquet/src/arrow/read/deserialize/utils/mod.rs +++ b/crates/polars-parquet/src/arrow/read/deserialize/utils/mod.rs @@ -433,7 +433,7 @@ where } } -impl<'a, 'b, 'c, O, T> BatchableCollector> for TranslatedHybridRle<'a, 'b, 'c, O, T> +impl BatchableCollector> for TranslatedHybridRle<'_, '_, '_, O, T> where O: Clone + Default, T: Translator, @@ -487,7 +487,7 @@ where } } -impl<'a, 'b, 'c, O, G> BatchableCollector> for GatheredHybridRle<'a, 'b, 'c, O, G> +impl BatchableCollector> for GatheredHybridRle<'_, '_, '_, O, G> where O: Clone, G: HybridRleGatherer>, @@ -516,8 +516,8 @@ where } } -impl<'a, 'b, 'c, T> BatchableCollector> - for TranslatedHybridRle<'a, 'b, 'c, View, T> +impl BatchableCollector> + for TranslatedHybridRle<'_, '_, '_, View, T> where T: Translator, { diff --git a/crates/polars-parquet/src/arrow/write/nested/dremel/mod.rs b/crates/polars-parquet/src/arrow/write/nested/dremel/mod.rs index 546efd034a9c..961393bf4ed2 100644 --- a/crates/polars-parquet/src/arrow/write/nested/dremel/mod.rs +++ b/crates/polars-parquet/src/arrow/write/nested/dremel/mod.rs @@ -79,7 +79,7 @@ pub fn num_values(nested: &[Nested]) -> usize { BufferedDremelIter::new(nested).count() } -impl<'a> Level<'a> { +impl Level<'_> { /// Fetch the number of elements given on the next level at `offset` on this level fn next_level_length(&self, offset: usize, is_valid: bool) -> usize { match self.lengths { @@ -407,7 +407,7 @@ impl<'a> BufferedDremelIter<'a> { } } -impl<'a> Iterator for BufferedDremelIter<'a> { +impl Iterator for BufferedDremelIter<'_> { type Item = DremelValue; fn next(&mut self) -> Option { diff --git a/crates/polars-parquet/src/parquet/encoding/bitpacked/decode.rs b/crates/polars-parquet/src/parquet/encoding/bitpacked/decode.rs index b453c7b6e0f6..b5ea9b815dc1 100644 --- a/crates/polars-parquet/src/parquet/encoding/bitpacked/decode.rs +++ b/crates/polars-parquet/src/parquet/encoding/bitpacked/decode.rs @@ -13,7 +13,7 @@ pub struct Decoder<'a, T: Unpackable> { _pd: std::marker::PhantomData, } -impl<'a, T: Unpackable> Default for Decoder<'a, T> { +impl Default for Decoder<'_, T> { fn default() -> Self { Self { packed: [].chunks(1), @@ -114,7 +114,7 @@ pub struct ChunkedDecoder<'a, 'b, T: Unpackable> { pub(crate) decoder: &'b mut Decoder<'a, T>, } -impl<'a, 'b, T: Unpackable> Iterator for ChunkedDecoder<'a, 'b, T> { +impl Iterator for ChunkedDecoder<'_, '_, T> { type Item = T::Unpacked; #[inline] @@ -136,9 +136,9 @@ impl<'a, 'b, T: Unpackable> Iterator for ChunkedDecoder<'a, 'b, T> { } } -impl<'a, 'b, T: Unpackable> ExactSizeIterator for ChunkedDecoder<'a, 'b, T> {} +impl ExactSizeIterator for ChunkedDecoder<'_, '_, T> {} -impl<'a, 'b, T: Unpackable> ChunkedDecoder<'a, 'b, T> { +impl ChunkedDecoder<'_, '_, T> { /// Get and consume the remainder chunk if it exists pub fn remainder(&mut self) -> Option<(T::Unpacked, usize)> { let remainder_len = self.decoder.len() % T::Unpacked::LENGTH; @@ -262,7 +262,7 @@ mod tests { use super::super::tests::case1; use super::*; - impl<'a, T: Unpackable> Decoder<'a, T> { + impl Decoder<'_, T> { pub fn collect(self) -> Vec { let mut vec = Vec::new(); self.collect_into(&mut vec); diff --git a/crates/polars-parquet/src/parquet/encoding/byte_stream_split/decoder.rs b/crates/polars-parquet/src/parquet/encoding/byte_stream_split/decoder.rs index 793fa6f111d7..1b383e9522f1 100644 --- a/crates/polars-parquet/src/parquet/encoding/byte_stream_split/decoder.rs +++ b/crates/polars-parquet/src/parquet/encoding/byte_stream_split/decoder.rs @@ -96,7 +96,7 @@ where converter: F, } -impl<'a, 'b, T, F> Iterator for DecoderIterator<'a, 'b, T, F> +impl Iterator for DecoderIterator<'_, '_, T, F> where F: Copy + Fn(&[u8]) -> T, { diff --git a/crates/polars-parquet/src/parquet/encoding/delta_byte_array/decoder.rs b/crates/polars-parquet/src/parquet/encoding/delta_byte_array/decoder.rs index 03889e0aa5d3..deb95f1dd3a2 100644 --- a/crates/polars-parquet/src/parquet/encoding/delta_byte_array/decoder.rs +++ b/crates/polars-parquet/src/parquet/encoding/delta_byte_array/decoder.rs @@ -56,7 +56,7 @@ impl<'a> Decoder<'a> { mod tests { use super::*; - impl<'a> Iterator for Decoder<'a> { + impl Iterator for Decoder<'_> { type Item = ParquetResult>; fn next(&mut self) -> Option { diff --git a/crates/polars-parquet/src/parquet/encoding/hybrid_rle/bitmap.rs b/crates/polars-parquet/src/parquet/encoding/hybrid_rle/bitmap.rs index f46f22f84adb..0d67dc935857 100644 --- a/crates/polars-parquet/src/parquet/encoding/hybrid_rle/bitmap.rs +++ b/crates/polars-parquet/src/parquet/encoding/hybrid_rle/bitmap.rs @@ -39,7 +39,7 @@ impl<'a> BitmapIter<'a> { } } -impl<'a> Iterator for BitmapIter<'a> { +impl Iterator for BitmapIter<'_> { type Item = bool; #[inline] diff --git a/crates/polars-parquet/src/parquet/encoding/hybrid_rle/buffered.rs b/crates/polars-parquet/src/parquet/encoding/hybrid_rle/buffered.rs index 824638d253ad..95d53b2769e4 100644 --- a/crates/polars-parquet/src/parquet/encoding/hybrid_rle/buffered.rs +++ b/crates/polars-parquet/src/parquet/encoding/hybrid_rle/buffered.rs @@ -44,7 +44,7 @@ impl Iterator for BufferedRle { impl ExactSizeIterator for BufferedRle {} -impl<'a> Iterator for BufferedBitpacked<'a> { +impl Iterator for BufferedBitpacked<'_> { type Item = u32; fn next(&mut self) -> Option { @@ -74,9 +74,9 @@ impl<'a> Iterator for BufferedBitpacked<'a> { } } -impl<'a> ExactSizeIterator for BufferedBitpacked<'a> {} +impl ExactSizeIterator for BufferedBitpacked<'_> {} -impl<'a> Iterator for HybridRleBuffered<'a> { +impl Iterator for HybridRleBuffered<'_> { type Item = u32; fn next(&mut self) -> Option { @@ -94,9 +94,9 @@ impl<'a> Iterator for HybridRleBuffered<'a> { } } -impl<'a> ExactSizeIterator for HybridRleBuffered<'a> {} +impl ExactSizeIterator for HybridRleBuffered<'_> {} -impl<'a> BufferedBitpacked<'a> { +impl BufferedBitpacked<'_> { fn gather_limited_into>( &mut self, target: &mut G::Target, @@ -212,7 +212,7 @@ impl BufferedRle { } } -impl<'a> HybridRleBuffered<'a> { +impl HybridRleBuffered<'_> { pub fn gather_limited_into>( &mut self, target: &mut G::Target, diff --git a/crates/polars-parquet/src/parquet/encoding/hybrid_rle/gatherer.rs b/crates/polars-parquet/src/parquet/encoding/hybrid_rle/gatherer.rs index 1548f6e50a02..c66ef5873439 100644 --- a/crates/polars-parquet/src/parquet/encoding/hybrid_rle/gatherer.rs +++ b/crates/polars-parquet/src/parquet/encoding/hybrid_rle/gatherer.rs @@ -432,7 +432,7 @@ impl Translator for UnitTranslator { /// [`HybridRleDecoder`]: super::HybridRleDecoder pub struct DictionaryTranslator<'a, T>(pub &'a [T]); -impl<'a, T: Copy> Translator for DictionaryTranslator<'a, T> { +impl Translator for DictionaryTranslator<'_, T> { fn translate(&self, value: u32) -> ParquetResult { self.0 .get(value as usize) diff --git a/crates/polars-parquet/src/parquet/schema/io_message/from_message.rs b/crates/polars-parquet/src/parquet/schema/io_message/from_message.rs index ae98fd694e64..ccf293e48b08 100644 --- a/crates/polars-parquet/src/parquet/schema/io_message/from_message.rs +++ b/crates/polars-parquet/src/parquet/schema/io_message/from_message.rs @@ -303,7 +303,7 @@ fn parse_timeunit( }) } -impl<'a> Parser<'a> { +impl Parser<'_> { // Entry function to parse message type, uses internal tokenizer. fn parse_message_type(&mut self) -> ParquetResult { // Check that message type starts with "message". diff --git a/crates/polars-parquet/src/parquet/write/dyn_iter.rs b/crates/polars-parquet/src/parquet/write/dyn_iter.rs index f47710b56b22..a232c06375e8 100644 --- a/crates/polars-parquet/src/parquet/write/dyn_iter.rs +++ b/crates/polars-parquet/src/parquet/write/dyn_iter.rs @@ -7,7 +7,7 @@ pub struct DynIter<'a, V> { iter: Box + 'a + Send + Sync>, } -impl<'a, V> Iterator for DynIter<'a, V> { +impl Iterator for DynIter<'_, V> { type Item = V; fn next(&mut self) -> Option { self.iter.next() @@ -35,7 +35,7 @@ pub struct DynStreamingIterator<'a, V, E> { iter: Box + 'a + Send + Sync>, } -impl<'a, V, E> FallibleStreamingIterator for DynStreamingIterator<'a, V, E> { +impl FallibleStreamingIterator for DynStreamingIterator<'_, V, E> { type Item = V; type Error = E; diff --git a/crates/polars-plan/src/dsl/function_expr/range/datetime_range.rs b/crates/polars-plan/src/dsl/function_expr/range/datetime_range.rs index a61264ce7aca..e220a7107435 100644 --- a/crates/polars-plan/src/dsl/function_expr/range/datetime_range.rs +++ b/crates/polars-plan/src/dsl/function_expr/range/datetime_range.rs @@ -223,7 +223,7 @@ pub(super) fn datetime_ranges( out.cast(&to_type).map(Column::from) } -impl<'a> FieldsMapper<'a> { +impl FieldsMapper<'_> { pub(super) fn map_to_datetime_range_dtype( &self, time_unit: Option<&TimeUnit>, diff --git a/crates/polars-plan/src/plans/ir/dot.rs b/crates/polars-plan/src/plans/ir/dot.rs index 51050f2fa877..76d8559a052d 100644 --- a/crates/polars-plan/src/plans/ir/dot.rs +++ b/crates/polars-plan/src/plans/ir/dot.rs @@ -420,7 +420,7 @@ impl fmt::Display for OptionExprIRDisplay<'_> { /// Utility structure to write to a [`fmt::Formatter`] whilst escaping the output as a label name pub struct EscapeLabel<'a>(pub &'a mut dyn fmt::Write); -impl<'a> fmt::Write for EscapeLabel<'a> { +impl fmt::Write for EscapeLabel<'_> { fn write_str(&mut self, mut s: &str) -> fmt::Result { loop { let mut char_indices = s.char_indices(); diff --git a/crates/polars-plan/src/plans/ir/format.rs b/crates/polars-plan/src/plans/ir/format.rs index 4ccb74f66238..c4ff7dfffb45 100644 --- a/crates/polars-plan/src/plans/ir/format.rs +++ b/crates/polars-plan/src/plans/ir/format.rs @@ -413,13 +413,13 @@ impl<'a> ExprIRDisplay<'a> { } } -impl<'a> Display for IRDisplay<'a> { +impl Display for IRDisplay<'_> { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { self._format(f, 0) } } -impl<'a, T: AsExpr> Display for ExprIRSliceDisplay<'a, T> { +impl Display for ExprIRSliceDisplay<'_, T> { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { // Display items in slice delimited by a comma @@ -452,13 +452,13 @@ impl<'a, T: AsExpr> Display for ExprIRSliceDisplay<'a, T> { } } -impl<'a, T: AsExpr> fmt::Debug for ExprIRSliceDisplay<'a, T> { +impl fmt::Debug for ExprIRSliceDisplay<'_, T> { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { Display::fmt(self, f) } } -impl<'a> Display for ExprIRDisplay<'a> { +impl Display for ExprIRDisplay<'_> { #[recursive] fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { let root = self.expr_arena.get(self.node); @@ -673,7 +673,7 @@ impl<'a> Display for ExprIRDisplay<'a> { } } -impl<'a> fmt::Debug for ExprIRDisplay<'a> { +impl fmt::Debug for ExprIRDisplay<'_> { fn fmt(&self, f: &mut Formatter<'_>) -> fmt::Result { Display::fmt(self, f) } diff --git a/crates/polars-plan/src/plans/ir/scan_sources.rs b/crates/polars-plan/src/plans/ir/scan_sources.rs index 789a5c4f4811..bcb80bd6140d 100644 --- a/crates/polars-plan/src/plans/ir/scan_sources.rs +++ b/crates/polars-plan/src/plans/ir/scan_sources.rs @@ -330,4 +330,4 @@ impl<'a> Iterator for ScanSourceIter<'a> { } } -impl<'a> ExactSizeIterator for ScanSourceIter<'a> {} +impl ExactSizeIterator for ScanSourceIter<'_> {} diff --git a/crates/polars-plan/src/plans/lit.rs b/crates/polars-plan/src/plans/lit.rs index 51dd550ee9e4..74feffd60da0 100644 --- a/crates/polars-plan/src/plans/lit.rs +++ b/crates/polars-plan/src/plans/lit.rs @@ -266,7 +266,7 @@ impl Literal for String { } } -impl<'a> Literal for &'a str { +impl Literal for &str { fn lit(self) -> Expr { Expr::Literal(LiteralValue::String(PlSmallStr::from_str(self))) } @@ -278,7 +278,7 @@ impl Literal for Vec { } } -impl<'a> Literal for &'a [u8] { +impl Literal for &[u8] { fn lit(self) -> Expr { Expr::Literal(LiteralValue::Binary(self.to_vec())) } diff --git a/crates/polars-plan/src/plans/optimizer/collapse_joins.rs b/crates/polars-plan/src/plans/optimizer/collapse_joins.rs index 608c7122f2ec..778efee6aa9b 100644 --- a/crates/polars-plan/src/plans/optimizer/collapse_joins.rs +++ b/crates/polars-plan/src/plans/optimizer/collapse_joins.rs @@ -123,7 +123,7 @@ struct MintermIter<'a> { expr_arena: &'a Arena, } -impl<'a> Iterator for MintermIter<'a> { +impl Iterator for MintermIter<'_> { type Item = Node; fn next(&mut self) -> Option { diff --git a/crates/polars-plan/src/plans/optimizer/cse/cse_lp.rs b/crates/polars-plan/src/plans/optimizer/cse/cse_lp.rs index 075414597edf..f4522ee3a3ca 100644 --- a/crates/polars-plan/src/plans/optimizer/cse/cse_lp.rs +++ b/crates/polars-plan/src/plans/optimizer/cse/cse_lp.rs @@ -184,7 +184,7 @@ fn skip_children(lp: &IR) -> bool { } } -impl<'a> Visitor for LpIdentifierVisitor<'a> { +impl Visitor for LpIdentifierVisitor<'_> { type Node = IRNode; type Arena = IRNodeArena; @@ -265,7 +265,7 @@ impl<'a> CommonSubPlanRewriter<'a> { } } -impl<'a> RewritingVisitor for CommonSubPlanRewriter<'a> { +impl RewritingVisitor for CommonSubPlanRewriter<'_> { type Node = IRNode; type Arena = IRNodeArena; diff --git a/crates/polars-stream/src/async_executor/mod.rs b/crates/polars-stream/src/async_executor/mod.rs index 243109e5facb..23789e5a20df 100644 --- a/crates/polars-stream/src/async_executor/mod.rs +++ b/crates/polars-stream/src/async_executor/mod.rs @@ -308,7 +308,7 @@ pub struct TaskScope<'scope, 'env: 'scope> { env: PhantomData<&'env mut &'env ()>, } -impl<'scope, 'env> TaskScope<'scope, 'env> { +impl<'scope> TaskScope<'scope, '_> { // Not Drop because that extends lifetimes. fn destroy(&self) { // Make sure all tasks are cancelled. diff --git a/crates/polars-stream/src/async_executor/park_group.rs b/crates/polars-stream/src/async_executor/park_group.rs index d9da30ce7f3e..d72a474da1e4 100644 --- a/crates/polars-stream/src/async_executor/park_group.rs +++ b/crates/polars-stream/src/async_executor/park_group.rs @@ -149,7 +149,7 @@ pub struct ParkAttempt<'a> { worker: &'a mut ParkGroupWorker, } -impl<'a> ParkAttempt<'a> { +impl ParkAttempt<'_> { /// Actually park this worker. /// /// If there were calls to unpark between calling prepare_park() and park(), diff --git a/crates/polars-stream/src/async_executor/task.rs b/crates/polars-stream/src/async_executor/task.rs index 9991377eb718..1383da2edde8 100644 --- a/crates/polars-stream/src/async_executor/task.rs +++ b/crates/polars-stream/src/async_executor/task.rs @@ -118,9 +118,9 @@ where } } -impl<'a, F, S, M> Wake for Task +impl Wake for Task where - F: Future + Send + 'a, + F: Future + Send, F::Output: Send + 'static, S: Fn(Runnable) + Send + Sync + Copy + 'static, M: Send + Sync + 'static, @@ -143,9 +143,9 @@ pub trait DynTask: Send + Sync { fn schedule(self: Arc); } -impl<'a, F, S, M> DynTask for Task +impl DynTask for Task where - F: Future + Send + 'a, + F: Future + Send, F::Output: Send + 'static, S: Fn(Runnable) + Send + Sync + Copy + 'static, M: Send + Sync + 'static, @@ -202,9 +202,9 @@ trait Joinable: Send + Sync { fn poll_join(&self, ctx: &mut Context<'_>) -> Poll; } -impl<'a, F, S, M> Joinable for Task +impl Joinable for Task where - F: Future + Send + 'a, + F: Future + Send, F::Output: Send + 'static, S: Fn(Runnable) + Send + Sync + Copy + 'static, M: Send + Sync + 'static, @@ -233,9 +233,9 @@ trait Cancellable: Send + Sync { fn cancel(&self); } -impl<'a, F, S, M> Cancellable for Task +impl Cancellable for Task where - F: Future + Send + 'a, + F: Future + Send, F::Output: Send + 'static, S: Send + Sync + 'static, M: Send + Sync + 'static, diff --git a/crates/polars-stream/src/async_primitives/connector.rs b/crates/polars-stream/src/async_primitives/connector.rs index 94999fff4e7a..8b53193b95f1 100644 --- a/crates/polars-stream/src/async_primitives/connector.rs +++ b/crates/polars-stream/src/async_primitives/connector.rs @@ -217,7 +217,7 @@ pin_project! { } } -unsafe impl<'a, T: Send> Send for SendFuture<'a, T> {} +unsafe impl Send for SendFuture<'_, T> {} impl Sender { /// Returns a future that when awaited will send the value to the [`Receiver`]. @@ -255,7 +255,7 @@ pin_project! { } } -unsafe impl<'a, T: Send> Send for RecvFuture<'a, T> {} +unsafe impl Send for RecvFuture<'_, T> {} impl Receiver { /// Returns a future that when awaited will return `Ok(value)` once the diff --git a/crates/polars-stream/src/async_primitives/task_parker.rs b/crates/polars-stream/src/async_primitives/task_parker.rs index 9e48b79e468b..d6cde679980b 100644 --- a/crates/polars-stream/src/async_primitives/task_parker.rs +++ b/crates/polars-stream/src/async_primitives/task_parker.rs @@ -43,7 +43,7 @@ pub struct TaskParkFuture<'a> { parker: &'a TaskParker, } -impl<'a> Future for TaskParkFuture<'a> { +impl Future for TaskParkFuture<'_> { type Output = (); fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll { diff --git a/crates/polars-stream/src/async_primitives/wait_group.rs b/crates/polars-stream/src/async_primitives/wait_group.rs index 716363528505..e08f556d3b95 100644 --- a/crates/polars-stream/src/async_primitives/wait_group.rs +++ b/crates/polars-stream/src/async_primitives/wait_group.rs @@ -62,7 +62,7 @@ impl Future for WaitGroupFuture<'_> { } } -impl<'a> Drop for WaitGroupFuture<'a> { +impl Drop for WaitGroupFuture<'_> { fn drop(&mut self) { self.inner.is_waiting.store(false, Ordering::Relaxed); } diff --git a/crates/polars-stream/src/pipe.rs b/crates/polars-stream/src/pipe.rs index 019d8779d18a..21b6a5672618 100644 --- a/crates/polars-stream/src/pipe.rs +++ b/crates/polars-stream/src/pipe.rs @@ -20,7 +20,7 @@ pub enum PhysicalPipe { pub struct SendPort<'a>(&'a mut PhysicalPipe); pub struct RecvPort<'a>(&'a mut PhysicalPipe); -impl<'a> RecvPort<'a> { +impl RecvPort<'_> { pub fn serial(self) -> Receiver { let PhysicalPipe::Uninit(num_pipelines) = self.0 else { unreachable!() @@ -41,7 +41,7 @@ impl<'a> RecvPort<'a> { } } -impl<'a> SendPort<'a> { +impl SendPort<'_> { #[allow(unused)] pub fn is_receiver_serial(&self) -> bool { matches!(self.0, PhysicalPipe::SerialReceiver(..)) diff --git a/crates/polars-time/src/windows/window.rs b/crates/polars-time/src/windows/window.rs index 90afe791e4d2..c7a29b846c58 100644 --- a/crates/polars-time/src/windows/window.rs +++ b/crates/polars-time/src/windows/window.rs @@ -316,7 +316,7 @@ impl<'a> BoundsIter<'a> { } } -impl<'a> Iterator for BoundsIter<'a> { +impl Iterator for BoundsIter<'_> { type Item = Bounds; fn next(&mut self) -> Option { diff --git a/crates/polars-utils/src/hashing.rs b/crates/polars-utils/src/hashing.rs index 12e59bf52f26..0682cf371457 100644 --- a/crates/polars-utils/src/hashing.rs +++ b/crates/polars-utils/src/hashing.rs @@ -33,13 +33,13 @@ impl<'a> IsNull for BytesHash<'a> { } } -impl<'a> Hash for BytesHash<'a> { +impl Hash for BytesHash<'_> { fn hash(&self, state: &mut H) { state.write_u64(self.hash) } } -impl<'a> PartialEq for BytesHash<'a> { +impl PartialEq for BytesHash<'_> { #[inline] fn eq(&self, other: &Self) -> bool { (self.hash == other.hash) && (self.payload == other.payload) @@ -94,7 +94,7 @@ impl DirtyHash for i128 { } } -impl<'a> DirtyHash for BytesHash<'a> { +impl DirtyHash for BytesHash<'_> { fn dirty_hash(&self) -> u64 { self.hash } diff --git a/crates/polars-utils/src/total_ord.rs b/crates/polars-utils/src/total_ord.rs index cfaa05f0141d..982dc707e3de 100644 --- a/crates/polars-utils/src/total_ord.rs +++ b/crates/polars-utils/src/total_ord.rs @@ -453,7 +453,7 @@ impl TotalOrd for (T, U) { } } -impl<'a> TotalHash for BytesHash<'a> { +impl TotalHash for BytesHash<'_> { #[inline(always)] fn tot_hash(&self, state: &mut H) where @@ -463,7 +463,7 @@ impl<'a> TotalHash for BytesHash<'a> { } } -impl<'a> TotalEq for BytesHash<'a> { +impl TotalEq for BytesHash<'_> { #[inline(always)] fn tot_eq(&self, other: &Self) -> bool { self == other diff --git a/crates/polars/tests/it/arrow/bitmap/utils/fmt.rs b/crates/polars/tests/it/arrow/bitmap/utils/fmt.rs index fa138cd528c9..08cfbf31c62e 100644 --- a/crates/polars/tests/it/arrow/bitmap/utils/fmt.rs +++ b/crates/polars/tests/it/arrow/bitmap/utils/fmt.rs @@ -2,7 +2,7 @@ use arrow::bitmap::utils::fmt; struct A<'a>(&'a [u8], usize, usize); -impl<'a> std::fmt::Debug for A<'a> { +impl std::fmt::Debug for A<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { fmt(self.0, self.1, self.2, f) } diff --git a/crates/polars/tests/it/io/avro/read_async.rs b/crates/polars/tests/it/io/avro/read_async.rs index 049910c0ce28..d50fd7595c58 100644 --- a/crates/polars/tests/it/io/avro/read_async.rs +++ b/crates/polars/tests/it/io/avro/read_async.rs @@ -26,25 +26,16 @@ async fn test(codec: Codec) -> PolarsResult<()> { Ok(()) } -// Issue with clippy interacting with tokio. See: -// https://github.com/rust-lang/rust-clippy/issues/13458 -#[allow(clippy::needless_return)] #[tokio::test] async fn read_without_codec() -> PolarsResult<()> { test(Codec::Null).await } -// Issue with clippy interacting with tokio. See: -// https://github.com/rust-lang/rust-clippy/issues/13458 -#[allow(clippy::needless_return)] #[tokio::test] async fn read_deflate() -> PolarsResult<()> { test(Codec::Deflate).await } -// Issue with clippy interacting with tokio. See: -// https://github.com/rust-lang/rust-clippy/issues/13458 -#[allow(clippy::needless_return)] #[tokio::test] async fn read_snappy() -> PolarsResult<()> { test(Codec::Snappy).await diff --git a/crates/polars/tests/it/io/avro/write_async.rs b/crates/polars/tests/it/io/avro/write_async.rs index 1be109e2733a..77cb212f89db 100644 --- a/crates/polars/tests/it/io/avro/write_async.rs +++ b/crates/polars/tests/it/io/avro/write_async.rs @@ -42,9 +42,6 @@ async fn roundtrip(compression: Option) -> PolarsResult<()> { Ok(()) } -// Issue with clippy interacting with tokio. See: -// https://github.com/rust-lang/rust-clippy/issues/13458 -#[allow(clippy::needless_return)] #[tokio::test] async fn no_compression() -> PolarsResult<()> { roundtrip(None).await diff --git a/crates/polars/tests/it/io/parquet/read/primitive_nested.rs b/crates/polars/tests/it/io/parquet/read/primitive_nested.rs index 0c3a15922a24..430df46d1239 100644 --- a/crates/polars/tests/it/io/parquet/read/primitive_nested.rs +++ b/crates/polars/tests/it/io/parquet/read/primitive_nested.rs @@ -179,7 +179,7 @@ pub struct DecoderIter<'a, T: Unpackable> { pub(crate) unpacked_end: usize, } -impl<'a, T: Unpackable> Iterator for DecoderIter<'a, T> { +impl Iterator for DecoderIter<'_, T> { type Item = T; fn next(&mut self) -> Option { @@ -203,7 +203,7 @@ impl<'a, T: Unpackable> Iterator for DecoderIter<'a, T> { } } -impl<'a, T: Unpackable> ExactSizeIterator for DecoderIter<'a, T> {} +impl ExactSizeIterator for DecoderIter<'_, T> {} impl<'a, T: Unpackable> DecoderIter<'a, T> { pub fn new(packed: &'a [u8], num_bits: usize, length: usize) -> ParquetResult { diff --git a/docs/source/src/rust/user-guide/io/cloud-storage.rs b/docs/source/src/rust/user-guide/io/cloud-storage.rs index 5c297739eeee..0c34f86bb2be 100644 --- a/docs/source/src/rust/user-guide/io/cloud-storage.rs +++ b/docs/source/src/rust/user-guide/io/cloud-storage.rs @@ -1,7 +1,3 @@ -// Issue with clippy interacting with tokio. See: -// https://github.com/rust-lang/rust-clippy/issues/13458 -#![allow(clippy::needless_return)] - // --8<-- [start:read_parquet] use aws_config::BehaviorVersion; use polars::prelude::*; diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 179cd9e58d86..90221c3e2edb 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,2 +1,2 @@ [toolchain] -channel = "nightly-2024-09-29" +channel = "nightly-2024-10-28"