Skip to content

Commit e2ccfd9

Browse files
committed
Remove bad deserialization from sequence to internally tagged newtype variant over .
1 parent a07d794 commit e2ccfd9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

serde/src/private/de.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,6 @@ mod content {
12721272
//
12731273
// We want {"result": "Success"} to deserialize into `Response<T>`.
12741274
Content::Map(ref v) if v.is_empty() => visitor.visit_unit(),
1275-
Content::Seq(ref v) if v.is_empty() => visitor.visit_unit(),
12761275
_ => Err(self.invalid_type(&visitor)),
12771276
}
12781277
}

0 commit comments

Comments
 (0)