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

Take string references instead of owned values building Facet paths #2265

Merged
merged 1 commit into from
Nov 20, 2023

Conversation

BlackHoleFox
Copy link
Contributor

This lets callers who already have String components of a Facet path avoid double-allocating them.

The PR is a breaking change since it pushes dealing with ToString's allocation (or skipping it :) ) up to the caller. Though for anyone already using &str or String their code will continue to compile. Everyone else will need to be explicit and call .to_string first to get the prior behavior.

@PSeitz PSeitz merged commit daad2dc into quickwit-oss:main Nov 20, 2023
3 checks passed
@BlackHoleFox BlackHoleFox deleted the from_path_allocs branch November 20, 2023 21:42
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.

3 participants