Skip to content

Conversation

@vilgotf
Copy link
Member

@vilgotf vilgotf commented Dec 29, 2025

Removes the generic impl Into<Box<F>> so that rustc can infer the predicate type. Other changes include:

  • Removing the tracing dependency: its usefulness is questionable
  • Correct component predicate to take &InteractionCreate instead of &Interaction
  • Shrink the futures' code size: box the check predicate prior to calling non-generic code
  • Make the futures generic over their type

@github-actions github-actions bot added c-book Affects the book c-standby Affects the standby crate m-breaking change Breaks the public API. t-refactor Refactors APIs or code. labels Dec 29, 2025
@vilgotf vilgotf changed the title refactor(standby)!: restructure internals fix(standby)!: make rustc infer the predicate type Dec 29, 2025
@github-actions github-actions bot added the t-fix Fixes a bug in the library label Dec 29, 2025
@vilgotf vilgotf removed the t-refactor Refactors APIs or code. label Dec 29, 2025
Copy link
Member

@Erk- Erk- left a comment

Choose a reason for hiding this comment

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

Looks good only one small nit about some complexity that I don't think is needed.

@vilgotf vilgotf requested a review from Erk- December 30, 2025 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c-book Affects the book c-standby Affects the standby crate m-breaking change Breaks the public API. t-fix Fixes a bug in the library

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants