Skip to content

Commit

Permalink
Mention second lifetime requirement on executor arg in changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
davidpdrsn committed Oct 12, 2020
1 parent de2dc72 commit 0bd0239
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,27 @@ for Rust libraries in [RFC #1105](https://github.com/rust-lang/rfcs/blob/master/

#### Breaking changes

None.
The `executor` argument in `field_*` methods now requires two lifetime arguments:

```rust
fn field_hello_world<'a, 'r>(
&self,
executor: &Executor<'a, 'r, Context>
) -> FieldResult<String> {
todo!()
}
```

This is due to breaking change in juniper. However with a recent version of Rust you can actually skip declaring the lifetimes at all:

```rust
fn field_hello_world(
&self,
executor: &Executor<Context>
) -> FieldResult<String> {
todo!()
}
```

## [0.5.2] - 2020-02-19

Expand Down

0 comments on commit 0bd0239

Please sign in to comment.