Skip to content

Commit

Permalink
Merge pull request 1030 from SecondHalfGames/map-key-serialize-some
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Jun 24, 2023
2 parents ba29a89 + b0fa978 commit 1153052
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1043,11 +1043,11 @@ where
Err(key_must_be_a_string())
}

fn serialize_some<T>(self, _value: &T) -> Result<()>
fn serialize_some<T>(self, value: &T) -> Result<()>
where
T: ?Sized + Serialize,
{
Err(key_must_be_a_string())
value.serialize(self)
}

fn serialize_seq(self, _len: Option<usize>) -> Result<Self::SerializeSeq> {
Expand Down

0 comments on commit 1153052

Please sign in to comment.