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

Rename as_str to to_str #8886

Merged
merged 1 commit into from
Nov 29, 2023
Merged

Rename as_str to to_str #8886

merged 1 commit into from
Nov 29, 2023

Conversation

dhruvmanila
Copy link
Member

This PR renames the method on StringLiteralValue from as_str to to_str. The main motivation is to follow the naming convention as described in the Rust API Guidelines. This method can perform a string allocation in case the string is implicitly concatenated.

@dhruvmanila
Copy link
Member Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

@dhruvmanila dhruvmanila added the internal An internal refactor or improvement label Nov 29, 2023
@dhruvmanila dhruvmanila merged commit ec7456b into main Nov 29, 2023
17 checks passed
@dhruvmanila dhruvmanila deleted the dhruv/rename-method branch November 29, 2023 00:50
Copy link
Contributor

ruff-ecosystem results

Linter (stable)

✅ ecosystem check detected no linter changes.

Linter (preview)

✅ ecosystem check detected no linter changes.

Formatter (stable)

✅ ecosystem check detected no format changes.

Formatter (preview)

✅ ecosystem check detected no format changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal An internal refactor or improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant