support rust v1.13.0 struct initialization syntax
This commit is contained in:
parent
9a3e48931b
commit
911dc57402
|
@ -530,8 +530,8 @@ enum SerdeError<V: fmt::Display, D: fmt::Display> {
|
||||||
|
|
||||||
/// Construct a [`SerdeError::NonExistent`]
|
/// Construct a [`SerdeError::NonExistent`]
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde")]
|
||||||
fn ne_timestamp<T: fmt::Display>(timestamp: T) -> SerdeError<T, u8> {
|
fn ne_timestamp<T: fmt::Display>(ts: T) -> SerdeError<T, u8> {
|
||||||
SerdeError::NonExistent::<T, u8> { timestamp }
|
SerdeError::NonExistent::<T, u8> { timestamp: ts }
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "serde")]
|
#[cfg(feature = "serde")]
|
||||||
|
|
Loading…
Reference in New Issue