Skip to content

Commit 582dce5

Browse files
shashitnakMiaxos
authored andcommitted
fixing formatting
1 parent 5af0d96 commit 582dce5

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/register.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//!
33
//! Implementation of the apollo Schema Reporting Protocol
44
//! <https://www.apollographql.com/docs/studio/schema/schema-reporting/>
5-
use async_graphql::{ObjectType, Schema, dynamic, SubscriptionType};
5+
use async_graphql::{dynamic, ObjectType, Schema, SubscriptionType};
66
use reqwest::Client;
77
use sha2::{Digest, Sha256};
88
use uuid::Uuid;
@@ -31,9 +31,7 @@ pub fn sha<Q: ObjectType + 'static, M: ObjectType + 'static, S: SubscriptionType
3131
* Compute the SHA256 of a dynamic Schema
3232
* Usefull for Apollo Studio
3333
*/
34-
pub fn sha_dynamic(
35-
schema: &dynamic::Schema,
36-
) -> String {
34+
pub fn sha_dynamic(schema: &dynamic::Schema) -> String {
3735
let mut hasher = Sha256::new();
3836
let schema_sdl = schema.sdl();
3937
let schema_bytes = schema_sdl.as_bytes();

src/runtime.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ cfg_if::cfg_if! {
99
tokio::spawn(f)
1010
}
1111
} else {
12-
compile_error!("tokio-comp or async-std-comp features required")
12+
compile_error!("tokio-comp or async-std-comp features required");
1313
}
1414
}

0 commit comments

Comments
 (0)