From 9b3c2c9b8acf4db5cc839285f2e4f59ace92c6c4 Mon Sep 17 00:00:00 2001 From: iancormac84 Date: Sat, 6 Jun 2020 12:38:15 -0400 Subject: [PATCH] Upgrade bson crate. --- Cargo.toml | 2 +- src/scalars/bson.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1c2330a5..c2bd5b5c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,7 +46,7 @@ indexmap = "1.3.2" async-stream = "0.2.1" multer = "1.2.0" log = "0.4.8" -bson = { version = "0.14.1", optional = true } +bson = { version = "0.15.0", optional = true } uuid = { version = "0.8.1", features = ["v4"] } url = { version = "2.1.1", optional = true } chrono-tz = { version = "0.5.1", optional = true } diff --git a/src/scalars/bson.rs b/src/scalars/bson.rs index 366e67fc..7bf7e59e 100644 --- a/src/scalars/bson.rs +++ b/src/scalars/bson.rs @@ -1,6 +1,6 @@ use crate::{InputValueError, InputValueResult, ScalarType, Value}; use async_graphql_derive::Scalar; -use bson::{oid::ObjectId, UtcDateTime}; +use bson::{oid::ObjectId, DateTime as UtcDateTime}; use chrono::{DateTime, Utc}; #[Scalar(internal)]