fix: parsing playlist channel
(more than 1 text component led to an error)
This commit is contained in:
parent
687ddec50d
commit
ca2335d03f
1 changed files with 0 additions and 7 deletions
|
|
@ -201,13 +201,6 @@ impl<'de> Deserialize<'de> for TextComponent {
|
|||
D: Deserializer<'de>,
|
||||
{
|
||||
let mut text = RichTextInternal::deserialize(deserializer)?;
|
||||
if text.runs.len() != 1 {
|
||||
return Err(serde::de::Error::invalid_length(
|
||||
text.runs.len(),
|
||||
&"1 run, use TextComponents for more",
|
||||
));
|
||||
}
|
||||
|
||||
Ok(text.runs.swap_remove(0).into())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue