Skip to content

Commit 73e4ec1

Browse files
committed
Fix build
1 parent 28b7f05 commit 73e4ec1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

postgres-shared/src/types/chrono.rs

+6-6
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ impl FromSql for DateTime<UTC> {
4343
fn from_sql(type_: &Type,
4444
raw: &[u8])
4545
-> Result<DateTime<UTC>, Box<Error + Sync + Send>> {
46-
let naive = try!(NaiveDateTime::from_sql(type_, raw, info));
46+
let naive = try!(NaiveDateTime::from_sql(type_, raw));
4747
Ok(DateTime::from_utc(naive, UTC))
4848
}
4949

@@ -55,7 +55,7 @@ impl ToSql for DateTime<UTC> {
5555
type_: &Type,
5656
w: &mut Vec<u8>)
5757
-> Result<IsNull, Box<Error + Sync + Send>> {
58-
self.naive_utc().to_sql(type_, w, info)
58+
self.naive_utc().to_sql(type_, w)
5959
}
6060

6161
accepts!(Type::Timestamptz);
@@ -66,7 +66,7 @@ impl FromSql for DateTime<Local> {
6666
fn from_sql(type_: &Type,
6767
raw: &[u8])
6868
-> Result<DateTime<Local>, Box<Error + Sync + Send>> {
69-
let utc = try!(DateTime::<UTC>::from_sql(type_, raw, info));
69+
let utc = try!(DateTime::<UTC>::from_sql(type_, raw));
7070
Ok(utc.with_timezone(&Local))
7171
}
7272

@@ -78,7 +78,7 @@ impl ToSql for DateTime<Local> {
7878
type_: &Type,
7979
mut w: &mut Vec<u8>)
8080
-> Result<IsNull, Box<Error + Sync + Send>> {
81-
self.with_timezone(&UTC).to_sql(type_, w, info)
81+
self.with_timezone(&UTC).to_sql(type_, w)
8282
}
8383

8484
accepts!(Type::Timestamptz);
@@ -89,7 +89,7 @@ impl FromSql for DateTime<FixedOffset> {
8989
fn from_sql(type_: &Type,
9090
raw: &[u8])
9191
-> Result<DateTime<FixedOffset>, Box<Error + Sync + Send>> {
92-
let utc = try!(DateTime::<UTC>::from_sql(type_, raw, info));
92+
let utc = try!(DateTime::<UTC>::from_sql(type_, raw));
9393
Ok(utc.with_timezone(&FixedOffset::east(0)))
9494
}
9595

@@ -101,7 +101,7 @@ impl ToSql for DateTime<FixedOffset> {
101101
type_: &Type,
102102
w: &mut Vec<u8>)
103103
-> Result<IsNull, Box<Error + Sync + Send>> {
104-
self.with_timezone(&UTC).to_sql(type_, w, info)
104+
self.with_timezone(&UTC).to_sql(type_, w)
105105
}
106106

107107
accepts!(Type::Timestamptz);

0 commit comments

Comments
 (0)