Skip to content

feat: implement clone for IntoPipeSystem #20108

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

mrchantey
Copy link
Contributor

Objective

Implement Clone for IntoPipeSystem, allowing for T: IntoSystem + Clone patterns.

Precedence

Same clone implementation/docs as CombinatorSystem

@mrchantey mrchantey added D-Straightforward Simple bug fixes and API improvements, docs, test and examples A-ECS Entities, components, systems, and events S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Jul 13, 2025
@@ -285,6 +285,17 @@ where
}
}

impl<A, B> Clone for IntoPipeSystem<A, B>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can this be #[derive(Clone)], like IntoAdapterSystem? I think CombinatorSystem needs an explicit impl because it doesn't require Func: Clone, but this impl looks like it could be derived.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events D-Straightforward Simple bug fixes and API improvements, docs, test and examples S-Needs-Review Needs reviewer attention (from anyone!) to move forward
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants