mirror of
https://github.com/pezkuwichain/serde.git
synced 2026-06-20 20:51:04 +00:00
Format with rustfmt 2018-12-10
This commit is contained in:
@@ -2272,7 +2272,7 @@ mod range {
|
||||
#[cfg(any(ops_bound, collections_bound))]
|
||||
impl<'de, T> Deserialize<'de> for Bound<T>
|
||||
where
|
||||
T: Deserialize<'de>
|
||||
T: Deserialize<'de>,
|
||||
{
|
||||
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>
|
||||
where
|
||||
|
||||
@@ -267,8 +267,12 @@ where
|
||||
{
|
||||
match *self {
|
||||
Bound::Unbounded => serializer.serialize_unit_variant("Bound", 0, "Unbounded"),
|
||||
Bound::Included(ref value) => serializer.serialize_newtype_variant("Bound", 1, "Included", value),
|
||||
Bound::Excluded(ref value) => serializer.serialize_newtype_variant("Bound", 2, "Excluded", value),
|
||||
Bound::Included(ref value) => {
|
||||
serializer.serialize_newtype_variant("Bound", 1, "Included", value)
|
||||
}
|
||||
Bound::Excluded(ref value) => {
|
||||
serializer.serialize_newtype_variant("Bound", 2, "Excluded", value)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user