support rust v1.13.0 struct initialization syntax

This commit is contained in:
Brandon W Maister 2019-09-20 11:41:23 -04:00
parent 9a3e48931b
commit 911dc57402
1 changed files with 2 additions and 2 deletions

View File

@ -530,8 +530,8 @@ enum SerdeError<V: fmt::Display, D: fmt::Display> {
/// Construct a [`SerdeError::NonExistent`]
#[cfg(feature = "serde")]
fn ne_timestamp<T: fmt::Display>(timestamp: T) -> SerdeError<T, u8> {
SerdeError::NonExistent::<T, u8> { timestamp }
fn ne_timestamp<T: fmt::Display>(ts: T) -> SerdeError<T, u8> {
SerdeError::NonExistent::<T, u8> { timestamp: ts }
}
#[cfg(feature = "serde")]