summary refs log tree commit diff
path: root/src/librustdoc/html/render
diff options
context:
space:
mode:
authorDirkjan Ochtman <dirkjan@ochtman.nl>2022-01-03 21:16:05 +0100
committerDirkjan Ochtman <dirkjan@ochtman.nl>2022-01-10 18:40:57 +0100
commitb00d6668b7665fbf040e4768030571bb5aa8c6de (patch)
treeffffef6c998e29ddbf1062772ee9890b29947235 /src/librustdoc/html/render
parent93a16cb7e2ee415f9b1a46165b297aa16b2a4fa0 (diff)
downloadrust-b00d6668b7665fbf040e4768030571bb5aa8c6de.tar.gz
rust-b00d6668b7665fbf040e4768030571bb5aa8c6de.zip
Address feedback
Diffstat (limited to 'src/librustdoc/html/render')
-rw-r--r--src/librustdoc/html/render/print_item.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/librustdoc/html/render/print_item.rs b/src/librustdoc/html/render/print_item.rs
index 29e03f7f65b..52268987a20 100644
--- a/src/librustdoc/html/render/print_item.rs
+++ b/src/librustdoc/html/render/print_item.rs
@@ -33,7 +33,6 @@ use crate::html::layout::Page;
 use crate::html::markdown::{HeadingOffset, MarkdownSummaryLine};
 
 use askama::Template;
-use serde::Serialize;
 
 const ITEM_TABLE_OPEN: &str = "<div class=\"item-table\">";
 const ITEM_TABLE_CLOSE: &str = "</div>";
@@ -41,13 +40,12 @@ const ITEM_TABLE_ROW_OPEN: &str = "<div class=\"item-row\">";
 const ITEM_TABLE_ROW_CLOSE: &str = "</div>";
 
 // A component in a `use` path, like `string` in std::string::ToString
-#[derive(Serialize)]
 struct PathComponent<'a> {
     path: String,
     name: &'a str,
 }
 
-#[derive(Serialize, Template)]
+#[derive(Template)]
 #[template(path = "print_item.html")]
 struct ItemVars<'a> {
     page: &'a Page<'a>,