update ci
This commit is contained in:
parent
81060abab8
commit
38dcc7d582
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
|
@ -16,8 +16,8 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- { rust: stable, os: ubuntu-latest }
|
# - { rust: stable, os: ubuntu-latest }
|
||||||
- { rust: 1.54.0, os: ubuntu-latest }
|
- { rust: 1.56.1, os: ubuntu-latest }
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
|
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## Unreleased
|
||||||
|
|
||||||
|
- Use Rust `2021` edition.
|
||||||
|
|
||||||
## [2.10.8] 2021-10-26
|
## [2.10.8] 2021-10-26
|
||||||
|
|
||||||
- [async-graphql-poem] Bump poem to `1.0.13`.
|
- [async-graphql-poem] Bump poem to `1.0.13`.
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
* [Docs](https://docs.rs/async-graphql)
|
* [Docs](https://docs.rs/async-graphql)
|
||||||
* [GitHub repository](https://github.com/async-graphql/async-graphql)
|
* [GitHub repository](https://github.com/async-graphql/async-graphql)
|
||||||
* [Cargo package](https://crates.io/crates/async-graphql)
|
* [Cargo package](https://crates.io/crates/async-graphql)
|
||||||
* Minimum supported Rust version: 1.54.0 or later
|
* Minimum supported Rust version: 1.56.1 or later
|
||||||
|
|
||||||
## Safety
|
## Safety
|
||||||
|
|
||||||
|
|
|
@ -316,11 +316,11 @@ fn generate_default_value(lit: &Lit) -> GeneratorResult<TokenStream> {
|
||||||
}
|
}
|
||||||
Lit::Int(value) => {
|
Lit::Int(value) => {
|
||||||
let value = value.base10_parse::<i32>()?;
|
let value = value.base10_parse::<i32>()?;
|
||||||
Ok(quote!({ ::TryInto::try_into(#value).unwrap() }))
|
Ok(quote!({ ::std::convert::TryInto::try_into(#value).unwrap() }))
|
||||||
}
|
}
|
||||||
Lit::Float(value) => {
|
Lit::Float(value) => {
|
||||||
let value = value.base10_parse::<f64>()?;
|
let value = value.base10_parse::<f64>()?;
|
||||||
Ok(quote!({ ::TryInto::try_into(#value) }))
|
Ok(quote!({ ::std::convert::TryInto::try_into(#value) }))
|
||||||
}
|
}
|
||||||
Lit::Bool(value) => {
|
Lit::Bool(value) => {
|
||||||
let value = value.value;
|
let value = value.value;
|
||||||
|
|
2
examples
2
examples
|
@ -1 +1 @@
|
||||||
Subproject commit 1683aac1883a6acf27747bf3e22491fa13aa538f
|
Subproject commit b1faa1061fb895ba0a325f01a09effea5fad50c8
|
|
@ -10,7 +10,6 @@ mod value_serde;
|
||||||
mod variables;
|
mod variables;
|
||||||
|
|
||||||
use std::borrow::{Borrow, Cow};
|
use std::borrow::{Borrow, Cow};
|
||||||
use std::collections::BTreeMap;
|
|
||||||
use std::fmt::{self, Display, Formatter, Write};
|
use std::fmt::{self, Display, Formatter, Write};
|
||||||
use std::ops::Deref;
|
use std::ops::Deref;
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user