Skip to content

Conversation

@mattixtech
Copy link
Contributor

The Uri type does not currently derive Clone. The Uri from hyper being wrapped does support clone so looks like there is no reason the hyperlocal type should not as well.

Since building HTTP requests can take the URI as a moved value, it is convenient to be able to clone the type if building multiple requests. Otherwise you may need to explicitly instantiate a new Uri each time.

@softprops softprops merged commit c2480c1 into softprops:main Jan 9, 2021
@softprops
Copy link
Owner

Thanks. Nice catch

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