Skip to content

Commit

Permalink
Remove bad deserialization from sequence to internally tagged newtype…
Browse files Browse the repository at this point in the history
… variant over .
  • Loading branch information
tage64 committed Oct 21, 2022
1 parent a07d794 commit e2ccfd9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion serde/src/private/de.rs
Expand Up @@ -1272,7 +1272,6 @@ mod content {
//
// We want {"result": "Success"} to deserialize into `Response<T>`.
Content::Map(ref v) if v.is_empty() => visitor.visit_unit(),
Content::Seq(ref v) if v.is_empty() => visitor.visit_unit(),
_ => Err(self.invalid_type(&visitor)),
}
}
Expand Down

0 comments on commit e2ccfd9

Please sign in to comment.