From fe032f83fcbcc199280c20467be9546d7597467a Mon Sep 17 00:00:00 2001 From: Lucas Kent Date: Fri, 29 Nov 2024 08:57:45 +1100 Subject: [PATCH] =?UTF-8?q?Update=20to=20rust=201.83=20=F0=9F=A6=80?= =?UTF-8?q?=F0=9F=A6=80=F0=9F=A6=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rust-toolchain.toml | 6 +++--- .../src/transforms/cassandra/sink_cluster/token_ring.rs | 2 +- shotover/src/transforms/kafka/sink_cluster/mod.rs | 2 +- shotover/src/transforms/mod.rs | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rust-toolchain.toml b/rust-toolchain.toml index 7df8e1f93..53e53ab08 100644 --- a/rust-toolchain.toml +++ b/rust-toolchain.toml @@ -1,4 +1,4 @@ [toolchain] -channel = "1.82" -components = [ "rustfmt", "clippy" ] -targets = [ "aarch64-unknown-linux-gnu" ] +channel = "1.83" +components = ["rustfmt", "clippy"] +targets = ["aarch64-unknown-linux-gnu"] diff --git a/shotover/src/transforms/cassandra/sink_cluster/token_ring.rs b/shotover/src/transforms/cassandra/sink_cluster/token_ring.rs index f0a57b5ef..873be7701 100644 --- a/shotover/src/transforms/cassandra/sink_cluster/token_ring.rs +++ b/shotover/src/transforms/cassandra/sink_cluster/token_ring.rs @@ -57,7 +57,7 @@ impl TokenRing { nodes: &'a [CassandraNode], token_from_key: Murmur3Token, keyspace: &'a KeyspaceMetadata, - ) -> impl Iterator + '_ { + ) -> impl Iterator + 'a { let mut racks_used = vec![]; self.ring_range(token_from_key) .filter(move |host_id| { diff --git a/shotover/src/transforms/kafka/sink_cluster/mod.rs b/shotover/src/transforms/kafka/sink_cluster/mod.rs index c2c9e0748..ed470fd96 100644 --- a/shotover/src/transforms/kafka/sink_cluster/mod.rs +++ b/shotover/src/transforms/kafka/sink_cluster/mod.rs @@ -3993,7 +3993,7 @@ fn random_broker_id(nodes: &[KafkaNode], rng: &mut SmallRng) -> BrokerId { struct FormatTopicName<'a>(&'a TopicName, &'a Uuid); -impl<'a> std::fmt::Display for FormatTopicName<'a> { +impl std::fmt::Display for FormatTopicName<'_> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { if self.0.is_empty() { write!(f, "topic with id {}", self.1) diff --git a/shotover/src/transforms/mod.rs b/shotover/src/transforms/mod.rs index eb9973204..786772acb 100644 --- a/shotover/src/transforms/mod.rs +++ b/shotover/src/transforms/mod.rs @@ -166,7 +166,7 @@ pub struct ChainState<'a> { /// [`Wrapper`] will not (cannot) bring the current list of transforms that it needs to traverse with it /// This is purely to make it convenient to clone all the data within Wrapper rather than it's transform /// state. -impl<'a> Clone for ChainState<'a> { +impl Clone for ChainState<'_> { fn clone(&self) -> Self { ChainState { requests: self.requests.clone(),