Skip to content

refactor: simplify AsExecutor with return-position impl Trait#8

Merged
jrandolf merged 2 commits intomainfrom
feat/as-executor-rpitit
Apr 13, 2026
Merged

refactor: simplify AsExecutor with return-position impl Trait#8
jrandolf merged 2 commits intomainfrom
feat/as-executor-rpitit

Conversation

@jrandolf
Copy link
Copy Markdown
Contributor

Summary

  • Drops the Exec<'c> associated type from the AsExecutor trait in favor of return-position impl Trait in trait methods (stable since 1.75).
  • Shrinks each impl to a single method and removes the where Self: 'c scaffolding, cutting ~245 lines across snapshots and examples.

Test plan

  • cargo test --test codegen
  • cargo clippy --all-targets -- -D warnings
  • cargo check in each examples/*

🤖 Generated with Claude Code

jrandolf and others added 2 commits April 13, 2026 03:31
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the associated `Exec<'c>` type on the `AsExecutor` trait with
return-position `impl Trait` in trait methods. Reduces boilerplate in
every impl and in generated snapshots.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jrandolf jrandolf merged commit 2761e28 into main Apr 13, 2026
2 checks passed
jrandolf added a commit that referenced this pull request Apr 13, 2026
Manual release bump for PR #8 (refactor: AsExecutor via return-position
impl Trait). Tag v0.1.3 will be pushed after merge to trigger the
Release workflow.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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.

1 participant