diff --git a/postgres-shared/src/types/chrono.rs b/postgres-shared/src/types/chrono.rs index c70a6ce4..e84e4b73 100644 --- a/postgres-shared/src/types/chrono.rs +++ b/postgres-shared/src/types/chrono.rs @@ -43,7 +43,7 @@ impl FromSql for DateTime { fn from_sql(type_: &Type, raw: &[u8]) -> Result, Box> { - let naive = try!(NaiveDateTime::from_sql(type_, raw, info)); + let naive = try!(NaiveDateTime::from_sql(type_, raw)); Ok(DateTime::from_utc(naive, UTC)) } @@ -55,7 +55,7 @@ impl ToSql for DateTime { type_: &Type, w: &mut Vec) -> Result> { - self.naive_utc().to_sql(type_, w, info) + self.naive_utc().to_sql(type_, w) } accepts!(Type::Timestamptz); @@ -66,7 +66,7 @@ impl FromSql for DateTime { fn from_sql(type_: &Type, raw: &[u8]) -> Result, Box> { - let utc = try!(DateTime::::from_sql(type_, raw, info)); + let utc = try!(DateTime::::from_sql(type_, raw)); Ok(utc.with_timezone(&Local)) } @@ -78,7 +78,7 @@ impl ToSql for DateTime { type_: &Type, mut w: &mut Vec) -> Result> { - self.with_timezone(&UTC).to_sql(type_, w, info) + self.with_timezone(&UTC).to_sql(type_, w) } accepts!(Type::Timestamptz); @@ -89,7 +89,7 @@ impl FromSql for DateTime { fn from_sql(type_: &Type, raw: &[u8]) -> Result, Box> { - let utc = try!(DateTime::::from_sql(type_, raw, info)); + let utc = try!(DateTime::::from_sql(type_, raw)); Ok(utc.with_timezone(&FixedOffset::east(0))) } @@ -101,7 +101,7 @@ impl ToSql for DateTime { type_: &Type, w: &mut Vec) -> Result> { - self.with_timezone(&UTC).to_sql(type_, w, info) + self.with_timezone(&UTC).to_sql(type_, w) } accepts!(Type::Timestamptz);