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

attributes: update #[instrument] to support async-trait 0.1.43+ #1291

Merged
merged 1 commit into from
Mar 10, 2021

Conversation

hawkw
Copy link
Member

@hawkw hawkw commented Mar 10, 2021

This backports #1228 from master to v0.1.x.

It works with both the old and new version of async-trait (except for
one doc test that failed previously, and that works with the new
version). One nice thing is that the code is simpler (e.g.g no self
renaming to _self, which will enable some simplifications in the
future).

A minor nitpick is that I disliked the deeply nested pattern matching in
get_async_trait_kind (previously: get_async_trait_function), so I
"flattened" that a bit.

Fixes #1219.

…1228)

This backports #1228 from `master` to `v0.1.x`.

It works with both the old and new version of async-trait (except for
one doc test that failed previously, and that works with the new
version). One nice thing is that the code is simpler (e.g.g no self
renaming to _self, which will enable some simplifications in the
future).

A minor nitpick is that I disliked the deeply nested pattern matching in
get_async_trait_kind (previously: get_async_trait_function), so I
"flattened" that a bit.

Fixes  #1219.
@hawkw hawkw requested a review from a team as a code owner March 10, 2021 20:17
@hawkw hawkw changed the title attributes: update #[instrument] to support async-trait 0.1.43+ (… attributes: update #[instrument] to support async-trait 0.1.43+ (#1228) Mar 10, 2021
@hawkw hawkw changed the title attributes: update #[instrument] to support async-trait 0.1.43+ (#1228) attributes: update #[instrument] to support async-trait 0.1.43+ Mar 10, 2021
@hawkw hawkw merged commit 8f68311 into v0.1.x Mar 10, 2021
@hawkw hawkw deleted the eliza/backport-1228 branch March 10, 2021 20:44
kaffarell pushed a commit to kaffarell/tracing that referenced this pull request May 22, 2024
…okio-rs#1228) (tokio-rs#1291)

This backports tokio-rs#1228 from `master` to `v0.1.x`.

It works with both the old and new version of async-trait (except for
one doc test that failed previously, and that works with the new
version). One nice thing is that the code is simpler (e.g.g no self
renaming to _self, which will enable some simplifications in the
future).

A minor nitpick is that I disliked the deeply nested pattern matching in
get_async_trait_kind (previously: get_async_trait_function), so I
"flattened" that a bit.

Fixes  tokio-rs#1219.

Co-authored-by: Simon THOBY <git@nightmared.fr>
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.

None yet

2 participants