Update CI
This commit is contained in:
parent
106c410dbe
commit
5b7d4b55cc
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -51,7 +51,7 @@ jobs:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: actions-rs/toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ matrix.rust }}
|
toolchain: nightly
|
||||||
override: true
|
override: true
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- name: Check format
|
- name: Check format
|
||||||
|
|
4
src/types/external/tokio/sync/mod.rs
vendored
4
src/types/external/tokio/sync/mod.rs
vendored
|
@ -1,4 +1,4 @@
|
||||||
#[cfg(feature = "tokio-sync")]
|
#[cfg(feature = "tokio-sync")]
|
||||||
mod rw_lock;
|
|
||||||
#[cfg(feature = "tokio-sync")]
|
|
||||||
mod mutex;
|
mod mutex;
|
||||||
|
#[cfg(feature = "tokio-sync")]
|
||||||
|
mod rw_lock;
|
||||||
|
|
5
src/types/external/tokio/sync/mutex.rs
vendored
5
src/types/external/tokio/sync/mutex.rs
vendored
|
@ -1,13 +1,12 @@
|
||||||
use tokio::sync::Mutex;
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
use async_graphql_parser::types::Field;
|
use async_graphql_parser::types::Field;
|
||||||
|
use tokio::sync::Mutex;
|
||||||
|
|
||||||
use crate::{registry, ContextSelectionSet, OutputType, Positioned, ServerResult, Value};
|
use crate::{registry, ContextSelectionSet, OutputType, Positioned, ServerResult, Value};
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl<T: OutputType> OutputType for Mutex<T>
|
impl<T: OutputType> OutputType for Mutex<T> {
|
||||||
{
|
|
||||||
fn type_name() -> Cow<'static, str> {
|
fn type_name() -> Cow<'static, str> {
|
||||||
T::type_name()
|
T::type_name()
|
||||||
}
|
}
|
||||||
|
|
5
src/types/external/tokio/sync/rw_lock.rs
vendored
5
src/types/external/tokio/sync/rw_lock.rs
vendored
|
@ -1,13 +1,12 @@
|
||||||
use tokio::sync::RwLock;
|
|
||||||
use std::borrow::Cow;
|
use std::borrow::Cow;
|
||||||
|
|
||||||
use async_graphql_parser::types::Field;
|
use async_graphql_parser::types::Field;
|
||||||
|
use tokio::sync::RwLock;
|
||||||
|
|
||||||
use crate::{registry, ContextSelectionSet, OutputType, Positioned, ServerResult, Value};
|
use crate::{registry, ContextSelectionSet, OutputType, Positioned, ServerResult, Value};
|
||||||
|
|
||||||
#[async_trait::async_trait]
|
#[async_trait::async_trait]
|
||||||
impl<T: OutputType> OutputType for RwLock<T>
|
impl<T: OutputType> OutputType for RwLock<T> {
|
||||||
{
|
|
||||||
fn type_name() -> Cow<'static, str> {
|
fn type_name() -> Cow<'static, str> {
|
||||||
T::type_name()
|
T::type_name()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user