Skip to content

Conversation

@Wassasin
Copy link

changelog: [unused_async_trait_impl]: added lint that checks for trait impl functions that are unnecessarily async. By rewriting them to return a core::future::ready an unnecessary coroutine is prevented.

In an embedded context having many trivial async blocks potentially hurts code size significantly. This lint enables projects to quickly find the cases that this applies to.

Unsure about if this is the right method to replace the relevant code spans. Any feedback is very welcome.

@Wassasin Wassasin force-pushed the unused_async_trait_impl branch from 3bce957 to 07c84ff Compare December 15, 2025 15:32
@Wassasin Wassasin force-pushed the unused_async_trait_impl branch from 07c84ff to 29282db Compare December 15, 2025 15:56
@rustbot
Copy link
Collaborator

rustbot commented Dec 18, 2025

☔ The latest upstream changes (possibly 741b684) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants