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

Deref &String arguments to &str where appropriate #10321

Merged
merged 4 commits into from Sep 12, 2023

Conversation

sholderbach
Copy link
Member

Description

This generally makes for nicer APIs, as you are not forced to use an existing allocation covering the full String.

Some exceptions remain where the underlying type requirements favor it.

User-Facing Changes

None

Copy link
Collaborator

@WindSoilder WindSoilder left a comment

Choose a reason for hiding this comment

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

Thanks! I like these changes :-D

@WindSoilder WindSoilder merged commit 6e9b6f2 into nushell:main Sep 12, 2023
19 checks passed
@sholderbach sholderbach deleted the deref-string branch September 12, 2023 06:22
hardfau1t pushed a commit to hardfau1t/nushell that referenced this pull request Dec 14, 2023
# Description
This generally makes for nicer APIs, as you are not forced to use an
existing allocation covering the full `String`.

Some exceptions remain where the underlying type requirements favor it.

# User-Facing Changes
None
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.

None yet

2 participants