Skip to content

Commit fd9eea2

Browse files
committed
Clean up a few compiler warnings
1 parent 4e8d486 commit fd9eea2

File tree

4 files changed

+2
-5
lines changed

4 files changed

+2
-5
lines changed

graphql_query_derive/src/operations.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
use constants::*;
2-
use graphql_parser;
32
use graphql_parser::query::OperationDefinition;
43
use heck::SnakeCase;
54
use proc_macro2::{Span, TokenStream};

graphql_query_derive/src/query.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
use failure;
22
use fragments::GqlFragment;
3-
use graphql_parser;
4-
use heck::SnakeCase;
53
use operations::Operation;
6-
use proc_macro2::{Ident, Span, TokenStream};
4+
use proc_macro2::TokenStream;
75
use schema::Schema;
86
use selection::Selection;
97
use std::collections::BTreeMap;

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ use std::collections::HashMap;
6565
/// Ok(())
6666
/// }
6767
/// ```
68-
/// ```
6968
pub trait GraphQLQuery<'de> {
7069
/// The shape of the variables expected by the query. This should be a generated struct most of the time.
7170
type Variables: serde::Serialize;

tests/subscriptions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const RESPONSE: &str = include_str!("subscription/subscription_query_response.js
2121
schema_path = "tests/subscription/subscription_schema.graphql",
2222
query_path = "tests/subscription/subscription_query.graphql",
2323
)]
24+
#[allow(dead_code)]
2425
struct SubscriptionQuery;
2526

2627
#[test]

0 commit comments

Comments
 (0)