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

Let Shutdown{Manager,Handle}::spawn take &str #178

Merged
merged 1 commit into from
Dec 7, 2023

Conversation

evanrelf
Copy link
Member

@evanrelf evanrelf commented Dec 7, 2023

Their spawn methods are usually invoked with string literals (&str), so it's nicer to do the conversion to an owned string internally.

I used impl Into<String> instead of &str to ensure we don't re-allocate if we already have a String.

Their `spawn` methods are usually invoked with string literals (`&str`),
so it's nicer to do the conversion to an owned string internally.

I used `impl Into<String>` instead of `&str` to ensure we don't
re-allocate if we already have a `String`.
@evanrelf evanrelf requested a review from 9999years December 7, 2023 19:23
@github-actions github-actions bot added the patch Bug fixes or non-functional changes label Dec 7, 2023
@9999years 9999years removed the patch Bug fixes or non-functional changes label Dec 7, 2023
@9999years 9999years merged commit 1e9825e into main Dec 7, 2023
30 checks passed
@9999years 9999years deleted the evan/spawn-string-slice branch December 7, 2023 20:36
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.

2 participants