From 5e171ca9a3f02da658d4ba0181bba0d8729af98e Mon Sep 17 00:00:00 2001 From: Aleksander Vognild Burkow Date: Tue, 31 Jan 2017 15:54:59 +0100 Subject: [PATCH] Upgrade serde_json to 0.9.x --- postgres-shared/Cargo.toml | 2 +- postgres-shared/src/types/serde_json.rs | 2 +- postgres/Cargo.toml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/postgres-shared/Cargo.toml b/postgres-shared/Cargo.toml index 923984c3..d020aeee 100644 --- a/postgres-shared/Cargo.toml +++ b/postgres-shared/Cargo.toml @@ -25,6 +25,6 @@ bit-vec = { version = "0.4", optional = true } chrono = { version = "0.2.14", optional = true } eui48 = { version = "0.1", optional = true } rustc-serialize = { version = "0.3", optional = true } -serde_json = { version = ">= 0.6, < 0.9", optional = true } +serde_json = { version = ">= 0.6, < 0.10", optional = true } time = { version = "0.1.14", optional = true } uuid = { version = ">= 0.1, < 0.4", optional = true } diff --git a/postgres-shared/src/types/serde_json.rs b/postgres-shared/src/types/serde_json.rs index e7aba007..3a493aeb 100644 --- a/postgres-shared/src/types/serde_json.rs +++ b/postgres-shared/src/types/serde_json.rs @@ -34,7 +34,7 @@ impl ToSql for Value { if let Type::Jsonb = *ty { out.push(1); } - try!(write!(out, "{:?}", self)); + try!(write!(out, "{}", self)); Ok(IsNull::No) } diff --git a/postgres/Cargo.toml b/postgres/Cargo.toml index 8de7956d..b9929319 100644 --- a/postgres/Cargo.toml +++ b/postgres/Cargo.toml @@ -58,6 +58,6 @@ bit-vec = "0.4" chrono = "0.2.14" eui48 = "0.1" rustc-serialize = "0.3" -serde_json = ">= 0.6, < 0.9" +serde_json = ">= 0.6, < 0.10" time = "0.1.14" uuid = ">= 0.1, < 0.4"