Simplify some of the rendering code in the index
It's kinda silly using serde seq for fixed-length stuff.
This commit is contained in:
parent
e40b3d6a38
commit
66b65043df
1 changed files with 1 additions and 5 deletions
|
@ -286,11 +286,7 @@ impl Serialize for TypeWithKind {
|
|||
where
|
||||
S: Serializer,
|
||||
{
|
||||
let mut seq = serializer.serialize_seq(None)?;
|
||||
seq.serialize_element(&self.ty.name)?;
|
||||
let x: ItemType = self.kind.into();
|
||||
seq.serialize_element(&x)?;
|
||||
seq.end()
|
||||
(&self.ty.name, ItemType::from(self.kind)).serialize(serializer)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue