cargo fmt

This commit is contained in:
Wez Furlong committed 2020-05-02 17:39:45 -07:00
1 parent 94bccf1dfb
commit fa32457656
2 files changed
+13 -10

No files matched your search

+12 -9
View File
@@ -230,17 +230,20 @@ macro_rules! int {
V: Visitor<'de>,
{
match self.0 {
Value::Integer(i) => {
v.$visit(i .try_into().map_err(|e| {
Error::custom(format!(
"lua Integer value {} doesn't fit \
in specified type: {}", i, e))
})?)
}
_ => Err(serde::de::Error::invalid_type(unexpected(&self.0), &"integer")),
Value::Integer(i) => v.$visit(i.try_into().map_err(|e| {
Error::custom(format!(
"lua Integer value {} doesn't fit \
in specified type: {}",
i, e
))
})?),
_ => Err(serde::de::Error::invalid_type(
unexpected(&self.0),
&"integer",
)),
}
}
}
};
}
impl<'de, 'lua> Deserializer<'de> for ValueWrapper<'lua> {