Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to rust 1.83 🦀🦀🦀 #1852

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading