remove unneeded hrtb

This commit is contained in:
Ashley Mannix 2017-04-24 07:17:37 +10:00
parent 5504f6c854
commit 1d1bfd93da
4 changed files with 6 additions and 6 deletions

View File

@ -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,
fixed_from_str: FFixed,
local_from_str: FLocal)
where FUTC: for<'de> Fn(&'de str) -> Result<DateTime<UTC>, E>,
FFixed: for<'de> Fn(&'de str) -> Result<DateTime<FixedOffset>, E>,
FLocal: for<'de> Fn(&'de str) -> Result<DateTime<Local>, E>,
where FUTC: Fn(&str) -> Result<DateTime<UTC>, E>,
FFixed: Fn(&str) -> Result<DateTime<FixedOffset>, E>,
FLocal: Fn(&str) -> Result<DateTime<Local>, E>,
E: ::std::fmt::Debug
{
// should check against the offset as well (the normal DateTime comparison will ignore them)

View File

@ -1495,7 +1495,7 @@ fn test_encodable_json<F, E>(to_string: F)
#[cfg(all(test, any(feature = "rustc-serialize", feature = "serde")))]
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};

View File

@ -1371,7 +1371,7 @@ fn test_encodable_json<F, E>(to_string: F)
#[cfg(all(test, any(feature = "rustc-serialize", feature = "serde")))]
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;

View File

@ -1261,7 +1261,7 @@ fn test_encodable_json<F, E>(to_string: F)
#[cfg(all(test, any(feature = "rustc-serialize", feature = "serde")))]
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(),
Some(NaiveTime::from_hms(0, 0, 0)));