aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKaleb Elwert <belak@coded.io>2020-02-26 10:14:46 -0800
committerKaleb Elwert <belak@coded.io>2020-02-26 10:14:46 -0800
commit88a119d5713f75501dab188182c5f83c3cfc178f (patch)
tree7d64e8f78cf2fba2fe1134ae89708c2969716e48
parent0a2c2b34eab437f937a7aaab2217a00fdcb4d7e8 (diff)
Small cleanupHEADmaster
-rw-r--r--src/util/value.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/util/value.rs b/src/util/value.rs
index 846f600..27203c6 100644
--- a/src/util/value.rs
+++ b/src/util/value.rs
@@ -121,7 +121,12 @@ where
}
b"dateTime.iso8601" => {
- unimplemented!();
+ let mut buf = Vec::new();
+ visitor.visit_string::<Self::Error>(
+ self.reader
+ .read_text(e.name(), &mut buf)
+ .map_err(ParseError::from)?,
+ )?
}
b"base64" => {
@@ -152,7 +157,7 @@ where
_ => {
return Err(ParseError::UnexpectedTag(
String::from_utf8_lossy(e.name()).into(),
- "one of int|i4|i8boolean|string|double|dateTime.iso8601|base64|struct|array|nil"
+ "one of int|i4|i8|boolean|string|double|dateTime.iso8601|base64|struct|array|nil"
.into(),
)
.into())