Skip to content

chore: migrate to rust edition 2024, align formatting with iroh standards#90

Open
Frando wants to merge 9 commits intomainfrom
Frando/edition2024
Open

chore: migrate to rust edition 2024, align formatting with iroh standards#90
Frando wants to merge 9 commits intomainfrom
Frando/edition2024

Conversation

@Frando
Copy link
Member

@Frando Frando commented Feb 12, 2026

Migrates to edition 2024

src/lib.rs Outdated
Comment on lines 1015 to 1019
match (self.f)(value) { Some(v) => {
self.sender.send(v).await
} else {
} _ => {
Ok(())
}
}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems weird? :D

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh yeah, reran fmt, dunno what was going on there

src/lib.rs Outdated
Comment on lines 1028 to 1032
match (self.f)(value) { Some(v) => {
self.sender.try_send(v).await
} else {
} _ => {
Ok(true)
}
}}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This too

Copy link
Member

@matheus23 matheus23 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ty for doing this.
It might be worth looking at the added + use<..> bounds and making sure that they're the right ones, and that they make sense in conjunction with + 'static.

@Frando
Copy link
Member Author

Frando commented Feb 12, 2026

I pushed a commit that adds the Makefile.toml from iroh for granularity-sorted imports. Also added a commit that makes lines a bit shorter by using the Result alias for all Results by setting its error type explicitly in these cases. Lines got really long with the use<> bounds.

I checked the use<> bounds that were added by cargo fix --edition and they look correct (don't include lifetime bounds that are not needed).

@Frando Frando changed the title chore: migrate to rust edition 2024 chore: migrate to rust edition 2024, align formatting with iroh standards Feb 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants