Skip to content

Commit 82d58e8

Browse files
author
daniel.eades
committed
remove unnecessary semicolons (clippy::unnecessary_semicolons)
1 parent 015e785 commit 82d58e8

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

graphql_client_cli/src/introspection_schema.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ pub fn introspect_schema(
6767

6868
if let Some(token) = authorization {
6969
req_builder = req_builder.bearer_auth(token.as_str());
70-
};
70+
}
7171

7272
let res = req_builder.json(&request_body).send()?;
7373

graphql_client_codegen/src/codegen/selection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ fn calculate_selection<'a>(
332332
);
333333
}
334334
TypeId::Input(_) => unreachable!("field selection on input type"),
335-
};
335+
}
336336
}
337337
Selection::Typename => (),
338338
Selection::InlineFragment(_inline) => (),

graphql_client_codegen/src/query.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ where
390390
)));
391391
}
392392
}
393-
};
393+
}
394394

395395
Ok(())
396396
}

graphql_client_codegen/src/schema/graphql_parser_conversion.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ where
7676
.names
7777
.get("Subscription")
7878
.and_then(|id| id.as_object_id());
79-
};
79+
}
8080
}
8181

8282
fn populate_names_map<'doc, T>(schema: &mut Schema, definitions: &[Definition<'doc, T>])

graphql_client_codegen/src/tests/mod.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ fn schema_with_keywords_works() {
3939
Err(e) => {
4040
panic!("Error: {}\n Generated content: {}\n", e, &generated_code);
4141
}
42-
};
42+
}
4343
}
4444

4545
#[test]
@@ -67,7 +67,7 @@ fn fragments_other_variant_should_generate_unknown_other_variant() {
6767
Err(e) => {
6868
panic!("Error: {}\n Generated content: {}\n", e, &generated_code);
6969
}
70-
};
70+
}
7171
}
7272

7373
#[test]
@@ -95,7 +95,7 @@ fn fragments_other_variant_false_should_not_generate_unknown_other_variant() {
9595
Err(e) => {
9696
panic!("Error: {}\n Generated content: {}\n", e, &generated_code);
9797
}
98-
};
98+
}
9999
}
100100

101101
#[test]
@@ -123,5 +123,5 @@ fn skip_serializing_none_should_generate_serde_skip_serializing() {
123123
Err(e) => {
124124
panic!("Error: {}\n Generated content: {}\n", e, &generated_code);
125125
}
126-
};
126+
}
127127
}

graphql_query_derive/src/attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ mod test {
188188
match extract_deprecation_strategy(&parsed) {
189189
Ok(_) => panic!("parsed unexpectedly"),
190190
Err(e) => assert_eq!(&format!("{e}"), DEPRECATION_ERROR),
191-
};
191+
}
192192
}
193193

194194
#[test]

graphql_query_derive/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,21 +70,21 @@ fn build_graphql_client_derive_options(
7070

7171
if let Some(variables_derives) = variables_derives {
7272
options.set_variables_derives(variables_derives);
73-
};
73+
}
7474

7575
if let Some(response_derives) = response_derives {
7676
options.set_response_derives(response_derives);
77-
};
77+
}
7878

7979
// The user can determine what to do about deprecations.
8080
if let Ok(deprecation_strategy) = attributes::extract_deprecation_strategy(input) {
8181
options.set_deprecation_strategy(deprecation_strategy);
82-
};
82+
}
8383

8484
// The user can specify the normalization strategy.
8585
if let Ok(normalization) = attributes::extract_normalization(input) {
8686
options.set_normalization(normalization);
87-
};
87+
}
8888

8989
// The user can give a path to a module that provides definitions for the custom scalars.
9090
if let Some(custom_scalars_module) = custom_scalars_module {

0 commit comments

Comments
 (0)