remove unneeded hrtb
This commit is contained in:
parent
5504f6c854
commit
1d1bfd93da
|
@ -418,9 +418,9 @@ fn test_encodable_json<FUTC, FFixed, E>(to_string_utc: FUTC, to_string_fixed: FF
|
||||||
fn test_decodable_json<FUTC, FFixed, FLocal, E>(utc_from_str: FUTC,
|
fn test_decodable_json<FUTC, FFixed, FLocal, E>(utc_from_str: FUTC,
|
||||||
fixed_from_str: FFixed,
|
fixed_from_str: FFixed,
|
||||||
local_from_str: FLocal)
|
local_from_str: FLocal)
|
||||||
where FUTC: for<'de> Fn(&'de str) -> Result<DateTime<UTC>, E>,
|
where FUTC: Fn(&str) -> Result<DateTime<UTC>, E>,
|
||||||
FFixed: for<'de> Fn(&'de str) -> Result<DateTime<FixedOffset>, E>,
|
FFixed: Fn(&str) -> Result<DateTime<FixedOffset>, E>,
|
||||||
FLocal: for<'de> Fn(&'de str) -> Result<DateTime<Local>, E>,
|
FLocal: Fn(&str) -> Result<DateTime<Local>, E>,
|
||||||
E: ::std::fmt::Debug
|
E: ::std::fmt::Debug
|
||||||
{
|
{
|
||||||
// should check against the offset as well (the normal DateTime comparison will ignore them)
|
// should check against the offset as well (the normal DateTime comparison will ignore them)
|
||||||
|
|
|
@ -1495,7 +1495,7 @@ fn test_encodable_json<F, E>(to_string: F)
|
||||||
|
|
||||||
#[cfg(all(test, any(feature = "rustc-serialize", feature = "serde")))]
|
#[cfg(all(test, any(feature = "rustc-serialize", feature = "serde")))]
|
||||||
fn test_decodable_json<F, E>(from_str: F)
|
fn test_decodable_json<F, E>(from_str: F)
|
||||||
where F: for<'de> Fn(&'de str) -> Result<NaiveDate, E>, E: ::std::fmt::Debug
|
where F: Fn(&str) -> Result<NaiveDate, E>, E: ::std::fmt::Debug
|
||||||
{
|
{
|
||||||
use std::{i32, i64};
|
use std::{i32, i64};
|
||||||
|
|
||||||
|
|
|
@ -1371,7 +1371,7 @@ fn test_encodable_json<F, E>(to_string: F)
|
||||||
|
|
||||||
#[cfg(all(test, any(feature = "rustc-serialize", feature = "serde")))]
|
#[cfg(all(test, any(feature = "rustc-serialize", feature = "serde")))]
|
||||||
fn test_decodable_json<F, E>(from_str: F)
|
fn test_decodable_json<F, E>(from_str: F)
|
||||||
where F: for<'de> Fn(&'de str) -> Result<NaiveDateTime, E>, E: ::std::fmt::Debug
|
where F: Fn(&str) -> Result<NaiveDateTime, E>, E: ::std::fmt::Debug
|
||||||
{
|
{
|
||||||
use naive::date;
|
use naive::date;
|
||||||
|
|
||||||
|
|
|
@ -1261,7 +1261,7 @@ fn test_encodable_json<F, E>(to_string: F)
|
||||||
|
|
||||||
#[cfg(all(test, any(feature = "rustc-serialize", feature = "serde")))]
|
#[cfg(all(test, any(feature = "rustc-serialize", feature = "serde")))]
|
||||||
fn test_decodable_json<F, E>(from_str: F)
|
fn test_decodable_json<F, E>(from_str: F)
|
||||||
where F: for<'de> Fn(&'de str) -> Result<NaiveTime, E>, E: ::std::fmt::Debug
|
where F: Fn(&str) -> Result<NaiveTime, E>, E: ::std::fmt::Debug
|
||||||
{
|
{
|
||||||
assert_eq!(from_str(r#""00:00:00""#).ok(),
|
assert_eq!(from_str(r#""00:00:00""#).ok(),
|
||||||
Some(NaiveTime::from_hms(0, 0, 0)));
|
Some(NaiveTime::from_hms(0, 0, 0)));
|
||||||
|
|
Loading…
Reference in New Issue