From 81249538826f226a03764a4ae512cd4b57df6d1f Mon Sep 17 00:00:00 2001 From: John Gallagher Date: Mon, 16 May 2016 10:17:25 -0500 Subject: [PATCH] rustfmt --- src/types/serde_json.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types/serde_json.rs b/src/types/serde_json.rs index 3c2089a..dc1eeff 100644 --- a/src/types/serde_json.rs +++ b/src/types/serde_json.rs @@ -31,9 +31,9 @@ impl FromSql for Value { let blob = try!(Vec::::column_result(stmt, col)); serde_json::from_slice(&blob) } - _ => return Err(Error::InvalidColumnType) + _ => return Err(Error::InvalidColumnType), }; - value_result.map_err(|err| { Error::FromSqlConversionFailure(Box::new(err)) }) + value_result.map_err(|err| Error::FromSqlConversionFailure(Box::new(err))) } } @@ -55,8 +55,8 @@ mod test { let json = r#"{"foo": 13, "bar": "baz"}"#; let data: serde_json::Value = serde_json::from_str(json).unwrap(); db.execute("INSERT INTO foo (t, b) VALUES (?, ?)", - &[&data, &json.as_bytes()]) - .unwrap(); + &[&data, &json.as_bytes()]) + .unwrap(); let t: serde_json::Value = db.query_row("SELECT t FROM foo", &[], |r| r.get(0)).unwrap(); assert_eq!(data, t);