Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions src/archive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,10 @@ where
ArchiveState: FromRef<S>,
{
type Rejection = (StatusCode, &'static str);
async fn from_request_parts(_parts: &mut Parts, state: &S) -> Result<Self, Self::Rejection> {
Ok(ArchiveState::from_ref(state))
fn from_request_parts(
_parts: &mut Parts,
state: &S,
) -> impl std::future::Future<Output = Result<Self, Self::Rejection>> {
std::future::ready(Ok(ArchiveState::from_ref(state)))
}
}
5 changes: 3 additions & 2 deletions src/graphql.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
//! The GraphQL API schema and implementation.
// async-graphql requires the API functions to be `async`.
#![allow(clippy::unused_async)]
// async-graphql generates async resolvers and enum trait implementations without awaits.
// Remove `unused_async_trait_impl` after async-graphql issue #1832 is fixed and released.
#![allow(clippy::unused_async, clippy::unused_async_trait_impl)]

#[cfg(not(feature = "auth-mtls"))]
pub mod account;
Expand Down
Loading