Skip to content

Commit d7a21a0

Browse files
author
daniel.eades
committed
use semicolon if nothing returned (clippy::semicolon_if_nothing_returned)
1 parent d73b780 commit d7a21a0

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

examples/web/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ use wasm_bindgen_futures::future_to_promise;
1515
struct PuppySmiles;
1616

1717
fn log(s: &str) {
18-
web_sys::console::log_1(&JsValue::from_str(s))
18+
web_sys::console::log_1(&JsValue::from_str(s));
1919
}
2020

2121
lazy_static! {

graphql_client/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ mod tests {
328328
path: None,
329329
extensions: None,
330330
}
331-
)
331+
);
332332
}
333333

334334
#[test]
@@ -363,7 +363,7 @@ mod tests {
363363
]),
364364
extensions: None,
365365
}
366-
)
366+
);
367367
}
368368

369369
#[test]
@@ -407,6 +407,6 @@ mod tests {
407407
]),
408408
extensions: expected_extensions,
409409
}
410-
)
410+
);
411411
}
412412
}

graphql_client/tests/interfaces.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,5 +174,5 @@ fn fragment_in_interface() {
174174
},
175175
])
176176
}
177-
)
177+
);
178178
}

graphql_client_codegen/src/codegen/selection.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ impl<'a> ExpandedSelection<'a> {
515515
}
516516

517517
fn push_type_alias(&mut self, alias: TypeAlias<'a>) {
518-
self.aliases.push(alias)
518+
self.aliases.push(alias);
519519
}
520520

521521
fn push_variant(&mut self, variant: ExpandedVariant<'a>) {

graphql_client_codegen/src/codegen_options.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ impl GraphQLClientCodegenOptions {
198198

199199
/// Set the custom scalar definitions module
200200
pub fn set_custom_scalars_module(&mut self, module: syn::Path) {
201-
self.custom_scalars_module = Some(module)
201+
self.custom_scalars_module = Some(module);
202202
}
203203

204204
/// Get the externally defined enums type names
@@ -223,7 +223,7 @@ impl GraphQLClientCodegenOptions {
223223

224224
/// Set the graphql client codegen option's skip none value.
225225
pub fn set_skip_serializing_none(&mut self, skip_serializing_none: bool) {
226-
self.skip_serializing_none = skip_serializing_none
226+
self.skip_serializing_none = skip_serializing_none;
227227
}
228228

229229
/// Get a reference to the graphql client codegen option's skip none value.

graphql_client_codegen/src/query.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ where
7575
for definition in &query.definitions {
7676
match definition {
7777
graphql_parser::query::Definition::Fragment(fragment) => {
78-
resolve_fragment(&mut resolved_query, schema, fragment)?
78+
resolve_fragment(&mut resolved_query, schema, fragment)?;
7979
}
8080
graphql_parser::query::Definition::Operation(operation) => {
81-
resolve_operation(&mut resolved_query, schema, operation)?
81+
resolve_operation(&mut resolved_query, schema, operation)?;
8282
}
8383
}
8484
}
@@ -96,7 +96,7 @@ where
9696
query: &resolved_query,
9797
schema,
9898
},
99-
)?
99+
)?;
100100
}
101101

102102
Ok(resolved_query)
@@ -607,7 +607,7 @@ impl ResolvedVariable {
607607

608608
let input = schema.get_input(input_id);
609609

610-
input.used_input_ids_recursive(used_types, schema)
610+
input.used_input_ids_recursive(used_types, schema);
611611
}
612612
type_id @ TypeId::Scalar(_) | type_id @ TypeId::Enum(_) => {
613613
used_types.types.insert(type_id);

graphql_client_codegen/src/schema/json_conversion.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn convert(src: &mut JsonSchema, schema: &mut Schema) {
5050
}
5151

5252
for enm in enums_mut(src) {
53-
ingest_enum(schema, enm)
53+
ingest_enum(schema, enm);
5454
}
5555

5656
for interface in interfaces_mut(src) {
@@ -62,7 +62,7 @@ fn convert(src: &mut JsonSchema, schema: &mut Schema) {
6262
}
6363

6464
for unn in unions_mut(src) {
65-
ingest_union(schema, unn)
65+
ingest_union(schema, unn);
6666
}
6767

6868
for input in inputs_mut(src) {

0 commit comments

Comments
 (0)