Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
gkorland committed Jan 17, 2022
1 parent c0f186d commit 3180793
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/de.rs
Original file line number Diff line number Diff line change
Expand Up @@ -764,15 +764,6 @@ impl<'de> VariantAccess<'de> for VariantDeserializer<'de> {
},
|value| seed.deserialize(value),
)

// if let Some(value) = self.value {
// seed.deserialize(value)
// } else {
// Err(SError::invalid_type(
// Unexpected::UnitVariant,
// &"newtype variant",
// ))
// }
}

fn tuple_variant<V>(self, _len: usize, visitor: V) -> Result<V::Value, Error>
Expand Down

0 comments on commit 3180793

Please sign in to comment.