Skip to content

Conversation

@azriel-healthpoint
Copy link
Contributor

Heya, I was trying to get the OpenAPI rust-server generator to use hyper 1.6, and one of the parts needed for that to work is to pass in a hyper::service::Service to an async closure, which requires the closure to be 'static.

Because the passed in service cannot be borrowed (which would make it not 'static), either it would have to be constructed on each call, or clone()d. For cloning to work, MakeAllowAllAuthenticator needs to impl Clone, which I've done here.

Copy link
Contributor

@dsteeley dsteeley left a comment

Choose a reason for hiding this comment

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

Thanks for contributing this.

@tofay tofay force-pushed the feature/174/implement-clone-for-make-allow-all-authenticator branch from e11251e to 7898b2e Compare June 10, 2025 08:18
@tofay tofay merged commit 2924500 into Metaswitch:master Jun 10, 2025
3 checks passed
@azriel-healthpoint azriel-healthpoint deleted the feature/174/implement-clone-for-make-allow-all-authenticator branch June 11, 2025 19:40
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