Repository navigation
Remove async-trait - #333
Merged
Merged
Conversation
Member
Author
|
Claude finished @FalkWoldmann's task in 9s —— View job Hi @FalkWoldmann, your comment only contained I can help with things like:
Tell me which of these you want, or give me a different instruction, and I'll start. |
Code reviewNo issues found. Checked for bugs and CLAUDE.md compliance. |
Member
Author
|
@claude review |
|
Claude finished @FalkWoldmann's task in 20s —— View job Review of #333: Remove async-traitI read the full diff but didn't build or run the tests, so the notes below come from reading the code. Verdict: Looks good to merge. I found no blocking issues, only the minor notes below. What I checked
Minor notes (non-blocking)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This drops
async-trait. The adapter traits now returnimpl Future + Send, and since those aren't dyn-compatible,MockServerholds aServerAdapterenum instead of a trait object. TheHttpClienttrait had a single impl, so it's gone and callers useHttpMockHttpClientdirectly.tls-detectgoes too, because itsReadtrait was the other reason we neededasync-trait: the server now tells TLS from plain HTTP by peeking at the first byte.the
tls-detectcargo feature is gone, noted as a breaking change in the CHANGELOG. As a side effect it fixes a debug-build overflow panic intls-detectand a double copy inTcpStreamPeekBuffer::advanceafter a partial peek