diff options
author | Martin Fischer <martin@push-f.com> | 2021-11-22 15:31:51 +0100 |
---|---|---|
committer | Martin Fischer <martin@push-f.com> | 2021-11-22 15:31:51 +0100 |
commit | a0ec23e259359bbbd115d6159193a361c8ce24df (patch) | |
tree | 3de51b4b3c3fe9622647084ca879ebeeda1d889b | |
parent | 01dfd7846a11715a643e3263a1c2bc3a123e3c17 (diff) |
improve attribute documentation
-rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -142,8 +142,8 @@ trait Client: Sync { } ``` -The `#[dyn_trait_attr(...)]` attribute lets you attach macro attributes to the -generated dynamized trait. The `#[blanket_impl_attr(...)]` attribute lets you -attach macro attributes to the generated blanket implementation. Note that it -is important that the dynamize attribute comes before the `async_trait` -attribute. +* `#[dyn_trait_attr(foo)]` attaches `#[foo]` to the dynamized trait +* `#[blanket_impl_attr(foo)]` attaches `#[foo]` to the blanket implementation + +Note that it is important that the `#[dynamize]` attribute comes before the +`#[async_trait]` attribute, since dynamize must run before async_trait. |