diff options
author | Hristo Venev <hristo@venev.name> | 2019-03-19 17:46:48 +0200 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2019-03-19 17:47:02 +0200 |
commit | 51c9e1433bf139759a41173aa63fa40855a10fac (patch) | |
tree | 5e7094a6eeaa5853717f6dbd3b57880aa28574c9 /src/proto.rs | |
parent | b7632fb35571f63fe28368c6508aa67fe8d775c8 (diff) |
lintv0.1.0
Diffstat (limited to 'src/proto.rs')
-rw-r--r-- | src/proto.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/proto.rs b/src/proto.rs index bfc3cbb..86c7eee 100644 --- a/src/proto.rs +++ b/src/proto.rs @@ -3,7 +3,7 @@ // See COPYING. use crate::ip::{Ipv4Net, Ipv6Net}; -use crate::model::{Key, Endpoint}; +use crate::model::{Endpoint, Key}; use serde_derive; use std::time::SystemTime; @@ -94,7 +94,9 @@ mod serde_utc { } fn visit_str<E: serde::de::Error>(self, s: &str) -> Result<Self::Value, E> { - DateTime::parse_from_rfc3339(s).map_err(de::Error::custom).map(SystemTime::from) + DateTime::parse_from_rfc3339(s) + .map_err(de::Error::custom) + .map(SystemTime::from) } } de.deserialize_str(RFC3339Visitor) |