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

Remove redundant clone() call. #24

Merged
merged 1 commit into from
Sep 24, 2023

Conversation

glomdom
Copy link
Contributor

@glomdom glomdom commented Sep 24, 2023

Calling clone() on a &str (str reference) will result in a noop instruction, as str doesn't implement Clone, so we'd only be copying the reference which does nothing.

Calling clone() on a &str (str reference) will result in a noop instruction, as str doesn't implement Clone, so we'd only be copying the reference which does nothing.
@jaytaph
Copy link
Member

jaytaph commented Sep 24, 2023

@glomdom Thank you for your PR!

@jaytaph jaytaph merged commit 084120c into gosub-io:main Sep 24, 2023
4 checks passed
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