Clippy cleanup

This commit is contained in:
Sunli 2020-06-06 10:10:10 +08:00
parent a845cfed03
commit 3292b068c2
2 changed files with 7 additions and 1 deletions

View File

@ -548,10 +548,16 @@ pub fn playground_source<T: Serialize>(config: &T) -> String {
})
}
/// Config for GraphQL Playground
#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
pub struct GraphQLPlaygroundConfig {
/// Query endpoint
pub endpoint: String,
/// Subscription endpoint, for example: `ws://localhost:8000`
pub subscription_endpoint: Option<String>,
/// HTTP headers
pub headers: Option<HashMap<String, String>>,
}

View File

@ -248,7 +248,7 @@ pub async fn query<Cursor, Node, ConnectionFields, EdgeFields, F, R>(
before: Option<String>,
first: Option<i32>,
last: Option<i32>,
mut f: F,
f: F,
) -> FieldResult<Connection<Cursor, Node, ConnectionFields, EdgeFields>>
where
Cursor: CursorType + Send + Sync,