Skip to content

Commit

Permalink
Update to rust 1.83 πŸ¦€πŸ¦€πŸ¦€
Browse files Browse the repository at this point in the history
  • Loading branch information
rukai committed Nov 28, 2024
1 parent de0d1a3 commit fe032f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -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"]
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ impl TokenRing {
nodes: &'a [CassandraNode],
token_from_key: Murmur3Token,
keyspace: &'a KeyspaceMetadata,
) -> impl Iterator<Item = Uuid> + '_ {
) -> impl Iterator<Item = Uuid> + 'a {
let mut racks_used = vec![];
self.ring_range(token_from_key)
.filter(move |host_id| {
Expand Down
2 changes: 1 addition & 1 deletion shotover/src/transforms/kafka/sink_cluster/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion shotover/src/transforms/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit fe032f8

Please sign in to comment.