Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhenrymantilla committed May 18, 2021
1 parent bfb0f7c commit ccddd29
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fix-hidden-lifetime-bug"
version = "0.1.0"
version = "0.1.1"
authors = [
"Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>",
]
Expand All @@ -14,7 +14,7 @@ keywords = ["impl", "lifetime", "bug", "hidden", "bound"]

[dependencies.proc_macros]
package = "fix-hidden-lifetime-bug-proc_macros"
version = "0.1.0"
version = "0.1.1"
path = "src/proc_macros"

[package.metadata.docs.rs]
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,16 @@ https://github.com/danielhenrymantilla/fix_hidden_lifetime_bug.rs/actions)
Then you can can the attribute provided by this crate to automagically generate
an equivalent signature that soothes this grumpy compiler
- See [the lifetime bug `async` issue], as well as [this other comment](
https://github.com/rust-lang/rust/issues/34511#issuecomment-373423999) for
more info.
The fix is thus to perform the unsugaring from an `async fn` to an `fn`
yielding a `Future`, and then just adding the necessary `+ Captures<'_>`
bounds.
[the lifetime bug `async` issue]: https://github.com/rust-lang/rust/issues/63033
### Usage
1. `cargo add fix_hidden_lifetime_bug`, or add the following to your `Cargo.toml` file:
Expand Down
2 changes: 1 addition & 1 deletion src/proc_macros/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ proc-macro = true

[package]
name = "fix-hidden-lifetime-bug-proc_macros"
version = "0.1.0"
version = "0.1.1"
authors = [
"Daniel Henry-Mantilla <daniel.henry.mantilla@gmail.com>",
]
Expand Down

0 comments on commit ccddd29

Please sign in to comment.