Clippy cleanup
This commit is contained in:
parent
ef7fa84deb
commit
1820e1b723
|
@ -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>>,
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user