Skip to content

Commit 8970fd9

Browse files
committed
Fix warning
1 parent 1d43455 commit 8970fd9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

postgres-shared/src/types/serde_json.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use self::serde_json::Value;
44
use std::error::Error;
55
use std::io::{Read, Write};
66

7-
use types::{FromSql, ToSql, IsNull, Type, JSON, JSONB};
7+
use types::{FromSql, IsNull, ToSql, Type, JSON, JSONB};
88

99
impl FromSql for Value {
1010
fn from_sql(ty: &Type, mut raw: &[u8]) -> Result<Value, Box<Error + Sync + Send>> {
@@ -23,7 +23,7 @@ impl FromSql for Value {
2323
}
2424

2525
impl ToSql for Value {
26-
fn to_sql(&self, ty: &Type, mut out: &mut Vec<u8>) -> Result<IsNull, Box<Error + Sync + Send>> {
26+
fn to_sql(&self, ty: &Type, out: &mut Vec<u8>) -> Result<IsNull, Box<Error + Sync + Send>> {
2727
if *ty == JSONB {
2828
out.push(1);
2929
}

0 commit comments

Comments
 (0)