From e629381653bb3579f0cea0b256e391edef5e8dbb Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Tue, 22 Jun 2021 16:41:34 -0700 Subject: [PATCH] chore(rustdoc): Remove unused impl block --- src/librustdoc/html/render/mod.rs | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/librustdoc/html/render/mod.rs b/src/librustdoc/html/render/mod.rs index 62d3c142eeb52..8e1db449e772d 100644 --- a/src/librustdoc/html/render/mod.rs +++ b/src/librustdoc/html/render/mod.rs @@ -101,28 +101,6 @@ crate struct RenderType { generics: Option>, } -impl Serialize for RenderType { - fn serialize(&self, serializer: S) -> Result - 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 {