We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bc4127 commit f2cba67Copy full SHA for f2cba67
src/lib.rs
@@ -7,8 +7,7 @@ extern crate postgres_protocol;
7
extern crate postgres_shared;
8
extern crate time;
9
extern crate chrono;
10
-use chrono::prelude::*;
11
-use chrono::DateTime;
+use chrono::{DateTime, TimeZone};
12
13
use std::cmp::Ordering;
14
use std::fmt;
@@ -159,8 +158,9 @@ impl Normalizable for Timespec {
159
158
}
160
161
162
-impl Normalizable for DateTime<Utc> {
163
- fn normalize<S>(bound: RangeBound<S, DateTime<Utc>>) -> RangeBound<S, DateTime<Utc>>
+impl<T> Normalizable for DateTime<T>
+ where T: TimeZone {
+ fn normalize<S>(bound: RangeBound<S, DateTime<T>>) -> RangeBound<S, DateTime<T>>
164
where
165
S: BoundSided,
166
{
0 commit comments