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
|
where
|
||||||
S: Serializer,
|
S: Serializer,
|
||||||
{
|
{
|
||||||
let mut seq = serializer.serialize_seq(None)?;
|
(&self.ty.name, ItemType::from(self.kind)).serialize(serializer)
|
||||||
seq.serialize_element(&self.ty.name)?;
|
|
||||||
let x: ItemType = self.kind.into();
|
|
||||||
seq.serialize_element(&x)?;
|
|
||||||
seq.end()
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue