diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fe6b3df6..548993d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: submodules: true - uses: actions-rs/toolchain@v1 with: - toolchain: ${{ matrix.rust }} + toolchain: nightly override: true components: rustfmt - name: Check format diff --git a/src/types/external/tokio/sync/mod.rs b/src/types/external/tokio/sync/mod.rs index 86312700..55c3490d 100644 --- a/src/types/external/tokio/sync/mod.rs +++ b/src/types/external/tokio/sync/mod.rs @@ -1,4 +1,4 @@ #[cfg(feature = "tokio-sync")] -mod rw_lock; -#[cfg(feature = "tokio-sync")] mod mutex; +#[cfg(feature = "tokio-sync")] +mod rw_lock; diff --git a/src/types/external/tokio/sync/mutex.rs b/src/types/external/tokio/sync/mutex.rs index 42d1a6bc..e0d2888a 100644 --- a/src/types/external/tokio/sync/mutex.rs +++ b/src/types/external/tokio/sync/mutex.rs @@ -1,13 +1,12 @@ -use tokio::sync::Mutex; use std::borrow::Cow; use async_graphql_parser::types::Field; +use tokio::sync::Mutex; use crate::{registry, ContextSelectionSet, OutputType, Positioned, ServerResult, Value}; #[async_trait::async_trait] -impl OutputType for Mutex -{ +impl OutputType for Mutex { fn type_name() -> Cow<'static, str> { T::type_name() } diff --git a/src/types/external/tokio/sync/rw_lock.rs b/src/types/external/tokio/sync/rw_lock.rs index de28940b..10eb996d 100644 --- a/src/types/external/tokio/sync/rw_lock.rs +++ b/src/types/external/tokio/sync/rw_lock.rs @@ -1,13 +1,12 @@ -use tokio::sync::RwLock; use std::borrow::Cow; use async_graphql_parser::types::Field; +use tokio::sync::RwLock; use crate::{registry, ContextSelectionSet, OutputType, Positioned, ServerResult, Value}; #[async_trait::async_trait] -impl OutputType for RwLock -{ +impl OutputType for RwLock { fn type_name() -> Cow<'static, str> { T::type_name() }