Skip to content

Commit

Permalink
Rollup merge of #86561 - notriddle:notriddle/cleanup-rustdoc, r=jyn514
Browse files Browse the repository at this point in the history
chore(rustdoc): Remove unused impl block
  • Loading branch information
JohnTitor authored Jun 24, 2021
2 parents 60dae7a + e629381 commit 2322097
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions src/librustdoc/html/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,28 +101,6 @@ crate struct RenderType {
generics: Option<Vec<Generic>>,
}

impl Serialize for RenderType {
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
if let Some(name) = &self.name {
let mut seq = serializer.serialize_seq(None)?;
if let Some(id) = self.idx {
seq.serialize_element(&id)?;
} else {
seq.serialize_element(&name)?;
}
if let Some(generics) = &self.generics {
seq.serialize_element(&generics)?;
}
seq.end()
} else {
serializer.serialize_none()
}
}
}

/// A type used for the search index.
#[derive(Debug)]
crate struct Generic {
Expand Down

0 comments on commit 2322097

Please sign in to comment.