aboutsummaryrefslogtreecommitdiff
path: root/src/proto.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/proto.rs')
-rw-r--r--src/proto.rs6
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)