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

Move Repository::address to dedicated trait #1153

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jrray
Copy link
Collaborator

@jrray jrray commented Nov 27, 2024

This makes it possible for other things to have a trait bound on Address instead of all of Repository, which means other types can implement Address without having to also implement all of Repository (not shown in this commit).

Also change the method signature to return Cow since there are cases where an existing Url value can be borrowed.

This makes it possible for other things to have a trait bound on
`Address` instead of all of `Repository`, which means other types can
implement `Address` without having to also implement all of
`Repository` (not shown in this commit).

Also change the method signature to return `Cow` since there are cases
where an existing `Url` value can be borrowed.

Signed-off-by: J Robert Ray <[email protected]>
@jrray jrray self-assigned this Nov 27, 2024
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.

1 participant