Skip to content
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

Leverage Into trait for String/&str arguments in ContainerContext #412

Merged
merged 2 commits into from
Jun 20, 2022

Conversation

Malax
Copy link
Member

@Malax Malax commented Jun 20, 2022

Functions in ContainerContext used concrete string types in some places that could easily replaced with a generic Into<String>. In most cases, conversion to String was happening anyway. This change just exposes this via the API, allowing the user to pass in anything that can be turned into a String, improving DX.

Fixes #405

@Malax Malax force-pushed the malax/start-with-process-into-string branch from 10888e2 to a0f8151 Compare June 20, 2022 08:54
@Malax Malax marked this pull request as ready for review June 20, 2022 08:55
@Malax Malax requested a review from a team as a code owner June 20, 2022 08:55
Copy link
Member

@edmorley edmorley left a comment

Choose a reason for hiding this comment

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

Thank you :-)

@Malax Malax merged commit a7eb65d into main Jun 20, 2022
@Malax Malax deleted the malax/start-with-process-into-string branch June 20, 2022 08:59
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.

Make start_with_process accept Into<String> not just String
2 participants