Update CI

This commit is contained in:
Sunli 2022-05-01 09:59:13 +08:00
parent f4748c4b35
commit 6f8e3fe033
4 changed files with 7 additions and 9 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
#[cfg(feature = "tokio-sync")]
mod rw_lock;
#[cfg(feature = "tokio-sync")]
mod mutex;
#[cfg(feature = "tokio-sync")]
mod rw_lock;

View File

@ -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<T: OutputType> OutputType for Mutex<T>
{
impl<T: OutputType> OutputType for Mutex<T> {
fn type_name() -> Cow<'static, str> {
T::type_name()
}

View File

@ -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<T: OutputType> OutputType for RwLock<T>
{
impl<T: OutputType> OutputType for RwLock<T> {
fn type_name() -> Cow<'static, str> {
T::type_name()
}