Skip to content

Commit

Permalink
Fix #[derive(World)] macro being unhygienic regarding custom `Resul…
Browse files Browse the repository at this point in the history
…t` types
  • Loading branch information
tyranron committed Sep 19, 2022
1 parent db1d315 commit 186af8b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 4 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ All user visible changes to `cucumber` crate will be documented in this file. Th



## [0.14.2] · 2022-09-??
[0.14.2]: /../../tree/v0.14.2

[Diff](/../../compare/v0.14.1...v0.14.2)

### Fixed

- `#[derive(World)]` macro being unhygienic regarding custom `Result` types.




## [0.14.1] · 2022-09-12
[0.14.1]: /../../tree/v0.14.1

Expand Down
10 changes: 10 additions & 0 deletions codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ All user visible changes to `cucumber-codegen` crate will be documented in this



## [0.14.2] · 2022-09-??
[0.14.2]: /../../tree/v0.14.2/codegen

### Fixed

- `#[derive(World)]` macro being unhygienic regarding custom `Result` types.




## [0.14.1] · 2022-09-12
[0.14.1]: /../../tree/v0.14.1/codegen

Expand Down
8 changes: 4 additions & 4 deletions codegen/src/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ impl Definition {
{
type Error = ::cucumber::codegen::anyhow::Error;

async fn new() -> Result<Self, Self::Error> {
async fn new() -> ::std::result::Result<Self, Self::Error> {
use ::cucumber::codegen::{
IntoWorldResult as _, ToWorldFuture as _,
};
Expand Down Expand Up @@ -224,7 +224,7 @@ mod spec {
impl ::cucumber::World for World {
type Error = ::cucumber::codegen::anyhow::Error;

async fn new() -> Result<Self, Self::Error> {
async fn new() -> ::std::result::Result<Self, Self::Error> {
use ::cucumber::codegen::{
IntoWorldResult as _, ToWorldFuture as _,
};
Expand Down Expand Up @@ -354,7 +354,7 @@ mod spec {
impl<T> ::cucumber::World for World<T> {
type Error = ::cucumber::codegen::anyhow::Error;

async fn new() -> Result<Self, Self::Error> {
async fn new() -> ::std::result::Result<Self, Self::Error> {
use ::cucumber::codegen::{
IntoWorldResult as _, ToWorldFuture as _,
};
Expand Down Expand Up @@ -485,7 +485,7 @@ mod spec {
impl<T> ::cucumber::World for World<T> {
type Error = ::cucumber::codegen::anyhow::Error;

async fn new() -> Result<Self, Self::Error> {
async fn new() -> ::std::result::Result<Self, Self::Error> {
use ::cucumber::codegen::{
IntoWorldResult as _, ToWorldFuture as _,
};
Expand Down

0 comments on commit 186af8b

Please sign in to comment.