Skip to content

Commit 9d67402

Browse files
authored
Merge pull request #440 from nickwesselman/ci-fix
Fix the repo CI
2 parents 0776197 + 3fa5041 commit 9d67402

File tree

21 files changed

+60
-56
lines changed

21 files changed

+60
-56
lines changed

graphql-introspection-query/src/introspection_response.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ impl<'de> Deserialize<'de> for __DirectiveLocation {
7878
}
7979
}
8080

81-
#[derive(Clone, Debug, PartialEq)]
81+
#[derive(Clone, Debug, PartialEq, Eq)]
8282
pub enum __TypeKind {
8383
SCALAR,
8484
OBJECT,

graphql_client/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ pub struct QueryBody<Variables> {
9999
}
100100

101101
/// Represents a location inside a query string. Used in errors. See [`Error`].
102-
#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize, PartialEq)]
102+
#[derive(Debug, Clone, Copy, Default, Serialize, Deserialize, PartialEq, Eq)]
103103
pub struct Location {
104104
/// The line number in the query string where the error originated (starting from 1).
105105
pub line: i32,
@@ -108,7 +108,7 @@ pub struct Location {
108108
}
109109

110110
/// Part of a path in a query. It can be an object key or an array index. See [`Error`].
111-
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
111+
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
112112
#[serde(untagged)]
113113
pub enum PathFragment {
114114
/// A key inside an object
@@ -193,7 +193,7 @@ impl Display for PathFragment {
193193
/// # Ok(())
194194
/// # }
195195
/// ```
196-
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]
196+
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
197197
pub struct Error {
198198
/// The human-readable error message. This is the only required field.
199199
pub message: String,
@@ -288,7 +288,7 @@ impl Display for Error {
288288
/// # Ok(())
289289
/// # }
290290
/// ```
291-
#[derive(Debug, Serialize, Deserialize, PartialEq)]
291+
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
292292
pub struct Response<Data> {
293293
/// The absent, partial or complete response data.
294294
pub data: Option<Data>,

graphql_client/tests/extern_enums.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use serde::Deserialize;
66
*
77
* They rename the fields to use SCREAMING_SNAKE_CASE for deserialization, as it is the standard for GraphQL enums.
88
*/
9-
#[derive(Deserialize, Debug, PartialEq)]
9+
#[derive(Deserialize, Debug, PartialEq, Eq)]
1010
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
1111
pub enum Direction {
1212
North,
@@ -15,7 +15,7 @@ pub enum Direction {
1515
West,
1616
}
1717

18-
#[derive(Deserialize, Debug, PartialEq)]
18+
#[derive(Deserialize, Debug, PartialEq, Eq)]
1919
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
2020
pub enum DistanceUnit {
2121
Meter,
@@ -39,7 +39,7 @@ pub struct SingleExternEnumQuery;
3939
#[graphql(
4040
schema_path = "tests/extern_enums/schema.graphql",
4141
query_path = "tests/extern_enums/multiple_extern_enums_query.graphql",
42-
response_derives = "Debug, PartialEq",
42+
response_derives = "Debug, PartialEq, Eq",
4343
extern_enums("Direction", "DistanceUnit")
4444
)]
4545
pub struct MultipleExternEnumsQuery;

graphql_client/tests/input_object_variables.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ type Email = String;
2929
#[graphql(
3030
query_path = "tests/input_object_variables/input_object_variables_query_defaults.graphql",
3131
schema_path = "tests/input_object_variables/input_object_variables_schema.graphql",
32-
response_derives = "Debug, PartialEq"
32+
response_derives = "Debug, PartialEq, Eq"
3333
)]
3434
pub struct DefaultInputObjectVariablesQuery;
3535

@@ -52,7 +52,7 @@ fn input_object_variables_default() {
5252
#[graphql(
5353
query_path = "tests/input_object_variables/input_object_variables_query.graphql",
5454
schema_path = "tests/input_object_variables/input_object_variables_schema.graphql",
55-
response_derives = "Debug, PartialEq"
55+
response_derives = "Debug, PartialEq, Eq"
5656
)]
5757
pub struct RecursiveInputQuery;
5858

@@ -78,7 +78,7 @@ fn recursive_input_objects_can_be_constructed() {
7878
#[graphql(
7979
query_path = "tests/input_object_variables/input_object_variables_query.graphql",
8080
schema_path = "tests/input_object_variables/input_object_variables_schema.graphql",
81-
response_derives = "Debug, PartialEq"
81+
response_derives = "Debug, PartialEq, Eq"
8282
)]
8383
pub struct InputCaseTestsQuery;
8484

@@ -96,7 +96,7 @@ fn input_objects_are_all_snake_case() {
9696
#[graphql(
9797
query_path = "tests/input_object_variables/input_object_variables_query.graphql",
9898
schema_path = "tests/input_object_variables/input_object_variables_schema.graphql",
99-
response_derives = "Debug, PartialEq"
99+
response_derives = "Debug, PartialEq, Eq"
100100
)]
101101
pub struct IndirectlyRecursiveInputQuery;
102102

@@ -123,7 +123,7 @@ fn indirectly_recursive_input_objects_can_be_constructed() {
123123
query_path = "tests/input_object_variables/input_object_variables_query.graphql",
124124
schema_path = "tests/input_object_variables/input_object_variables_schema.graphql",
125125
variables_derives = "Default",
126-
response_derives = "Debug, PartialEq"
126+
response_derives = "Debug, PartialEq, Eq"
127127
)]
128128
pub struct RustNameQuery;
129129

graphql_client/tests/input_object_variables/input_object_variables_schema.graphql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,11 @@ type CaseTestResult {
4949
}
5050

5151
type InputObjectVariablesQuery {
52-
echo(message: Message!, options: Options = { pgpSignature: true }, extern: String = ""): EchoResult
52+
echo(
53+
message: Message!
54+
options: Options = { pgpSignature: true }
55+
extern: String = ""
56+
): EchoResult
5357
testQueryCase(caseTestInput: CaseTestInput!): CaseTestResult
5458
saveRecursiveInput(recursiveInput: RecursiveInput!): Category
5559
}

graphql_client/tests/interfaces.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const RESPONSE: &str = include_str!("interfaces/interface_response.json");
66
#[graphql(
77
query_path = "tests/interfaces/interface_query.graphql",
88
schema_path = "tests/interfaces/interface_schema.graphql",
9-
response_derives = "Debug, PartialEq"
9+
response_derives = "Debug, PartialEq, Eq"
1010
)]
1111
pub struct InterfaceQuery;
1212

@@ -57,7 +57,7 @@ fn interface_deserialization() {
5757
#[graphql(
5858
query_path = "tests/interfaces/interface_not_on_everything_query.graphql",
5959
schema_path = "tests/interfaces/interface_schema.graphql",
60-
response_derives = "Debug,PartialEq"
60+
response_derives = "Debug, PartialEq, Eq"
6161
)]
6262
pub struct InterfaceNotOnEverythingQuery;
6363

@@ -111,7 +111,7 @@ fn interface_not_on_everything_deserialization() {
111111
#[graphql(
112112
query_path = "tests/interfaces/interface_with_fragment_query.graphql",
113113
schema_path = "tests/interfaces/interface_schema.graphql",
114-
response_derives = "Debug,PartialEq"
114+
response_derives = "Debug, PartialEq, Eq"
115115
)]
116116
pub struct InterfaceWithFragmentQuery;
117117

graphql_client/tests/introspection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use graphql_client::*;
44
#[graphql(
55
query_path = "tests/introspection/introspection_query.graphql",
66
schema_path = "tests/introspection/introspection_schema.graphql",
7-
response_derives = "Debug,PartialEq"
7+
response_derives = "Debug, PartialEq, Eq"
88
)]
99
pub struct IntrospectionQuery;
1010

graphql_client/tests/json_schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type Uuid = String;
77
#[graphql(
88
query_path = "tests/json_schema/query.graphql",
99
schema_path = "tests/json_schema/schema_1.json",
10-
response_derives = "Debug,PartialEq"
10+
response_derives = "Debug, PartialEq, Eq"
1111
)]
1212
pub struct WithSchema1;
1313

graphql_client/tests/more_derives.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use graphql_client::*;
44
#[graphql(
55
schema_path = "tests/more_derives/schema.graphql",
66
query_path = "tests/more_derives/query.graphql",
7-
response_derives = "Debug, PartialEq, std::cmp::PartialOrd"
7+
response_derives = "Debug, PartialEq, Eq, std::cmp::PartialOrd"
88
)]
99
pub struct MoreDerives;
1010

graphql_client/tests/operation_selection.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ use graphql_client::GraphQLQuery;
44
#[graphql(
55
query_path = "tests/operation_selection/queries.graphql",
66
schema_path = "tests/operation_selection/schema.graphql",
7-
response_derives = "Debug,PartialEq"
7+
response_derives = "Debug, PartialEq, Eq"
88
)]
99
pub struct Heights;
1010

1111
#[derive(GraphQLQuery)]
1212
#[graphql(
1313
query_path = "tests/operation_selection/queries.graphql",
1414
schema_path = "tests/operation_selection/schema.graphql",
15-
response_derives = "Debug,PartialEq"
15+
response_derives = "Debug, PartialEq, Eq"
1616
)]
1717
pub struct Echo;
1818

0 commit comments

Comments
 (0)