From a1e5543f9c10194fbf4e1e82396a07eabbdfab26 Mon Sep 17 00:00:00 2001 From: Coenen Benjamin Date: Tue, 9 Jun 2020 15:18:23 +0200 Subject: [PATCH 1/2] Update name of scalar DateTime to DateTimeUtc (#166) * Update name of scalar DateTime to DateTimeUtc --- src/scalars/datetime.rs | 2 +- src/scalars/mod.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/scalars/datetime.rs b/src/scalars/datetime.rs index 328a5ff7..2067d3c4 100644 --- a/src/scalars/datetime.rs +++ b/src/scalars/datetime.rs @@ -5,7 +5,7 @@ use chrono::{DateTime, TimeZone, Utc}; /// Implement the DateTime scalar /// /// The input/output is a string in RFC3339 format. -#[Scalar(internal, name = "DateTime")] +#[Scalar(internal, name = "DateTimeUtc")] impl ScalarType for DateTime { fn parse(value: Value) -> InputValueResult { match value { diff --git a/src/scalars/mod.rs b/src/scalars/mod.rs index 14165687..2f2c0dee 100644 --- a/src/scalars/mod.rs +++ b/src/scalars/mod.rs @@ -55,10 +55,10 @@ mod tests { assert_eq!(::type_name(), "NaiveTime"); assert_eq!(::qualified_type_name(), "NaiveTime!"); - assert_eq!( as Type>::type_name(), "DateTime"); + assert_eq!( as Type>::type_name(), "DateTimeUtc"); assert_eq!( as Type>::qualified_type_name(), - "DateTime!" + "DateTimeUtc!" ); assert_eq!(::type_name(), "UUID"); From a76336ea9a2879b4564018a89ee1477d32072cfc Mon Sep 17 00:00:00 2001 From: sunli Date: Tue, 9 Jun 2020 21:23:09 +0800 Subject: [PATCH 2/2] Release 1.15.2 async-graphql@1.15.2 Generated by cargo-workspaces --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9142018e..4ad3bf37 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "async-graphql" -version = "1.15.1" +version = "1.15.2" authors = ["sunli "] edition = "2018" description = "A GraphQL server library implemented in Rust"