diff --git a/Cargo.toml b/Cargo.toml index a922dc9cd..c18c76be5 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -35,6 +35,7 @@ async-graphql-value = { path = "value", version = "4.0.4" } async-stream = "0.3.0" async-trait = "0.1.48" bytes = { version = "1.0.1", features = ["serde"] } +fix-hidden-lifetime-bug = "0.2.4" # See #900 fnv = "1.0.7" futures-util = { version = "0.3.0", default-features = false, features = [ "io", diff --git a/derive/src/interface.rs b/derive/src/interface.rs index a02613584..38a529d04 100644 --- a/derive/src/interface.rs +++ b/derive/src/interface.rs @@ -250,6 +250,7 @@ pub fn generate(interface_args: &args::Interface) -> GeneratorResult(&self, #(#decl_params),*) -> #crate_name::Result<#ty> { match self { diff --git a/derive/src/simple_object.rs b/derive/src/simple_object.rs index dc2bff447..134d23120 100644 --- a/derive/src/simple_object.rs +++ b/derive/src/simple_object.rs @@ -226,6 +226,7 @@ pub fn generate(object_args: &args::SimpleObject) -> GeneratorResult) -> #crate_name::Result<#ty> { ::std::result::Result::Ok(#block) } diff --git a/src/lib.rs b/src/lib.rs index 41ff53d74..d8162458c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -214,6 +214,8 @@ pub use async_graphql_value::{ pub use async_stream; #[doc(hidden)] pub use async_trait; +#[doc(hidden)] +pub use ::fix_hidden_lifetime_bug::fix_hidden_lifetime_bug; pub use base::{ ComplexObject, Description, InputObjectType, InputType, InterfaceType, ObjectType, OneofObjectType, OutputType, TypeName, UnionType,