Skip to content

Commit 1c81278

Browse files
authored
Merge pull request #188 from h-michael/derive
Add extra-traits features to graphql-query-derive's syn dependency
2 parents d3dbf8c + 0c57cfb commit 1c81278

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graphql_query_derive/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ proc-macro = true
1111

1212
[dependencies]
1313
failure = "0.1"
14-
syn = "0.15.20"
14+
syn = { version = "0.15.20", features = ["extra-traits"] }
1515
proc-macro2 = { version = "0.4", features = [] }
1616
graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.5.1" }

graphql_query_derive/src/attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ use failure;
22
use graphql_client_codegen::deprecation::DeprecationStrategy;
33
use syn;
44

5-
const DEPRECATION_ERROR: &'static str = "deprecated must be one of 'allow', 'deny', or 'warn'";
5+
const DEPRECATION_ERROR: &str = "deprecated must be one of 'allow', 'deny', or 'warn'";
66

77
/// The `graphql` attribute as a `syn::Path`.
88
fn path_to_match() -> syn::Path {

0 commit comments

Comments
 (0)