Skip to content

Conversation

@fwcd
Copy link
Member

@fwcd fwcd commented Jun 1, 2024

Instead of taking &[&str], this refactors most path parameters to take impl Iterator<Item = impl AsRef<str>>. This should make it possible to pass owned containers (e.g. Vecs or arrays), including those containing owned Strings.

While this seems to be the suggested approach for passing strings generically, it significantly impairs readability and introduces some ambiguities when passing empty paths (previously &[] would have been accepted, which is now ambiguous due to the generic impl AsRef<str>).

Draft PR for now until we figure out a more acceptable tradeoff.

@fwcd fwcd closed this in 480dfd9 Mar 4, 2025
@fwcd fwcd deleted the generic-path-params branch March 4, 2025 03:35
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