@@ -31,11 +31,10 @@ use crate::html::format::{
31
31
display_fn, join_with_double_colon, print_abi_with_space, print_constness_with_space,
32
32
print_where_clause, visibility_print_with_space, Buffer , Ending , PrintWithSpace ,
33
33
} ;
34
- use crate :: html:: layout :: Page ;
34
+ use crate :: html:: highlight ;
35
35
use crate :: html:: markdown:: { HeadingOffset , MarkdownSummaryLine } ;
36
36
use crate :: html:: render:: { document_full, document_item_info} ;
37
37
use crate :: html:: url_parts_builder:: UrlPartsBuilder ;
38
- use crate :: html:: { highlight, static_files} ;
39
38
40
39
use askama:: Template ;
41
40
use itertools:: Itertools ;
@@ -157,8 +156,6 @@ struct PathComponent {
157
156
#[ derive( Template ) ]
158
157
#[ template( path = "print_item.html" ) ]
159
158
struct ItemVars < ' a > {
160
- static_root_path : & ' a str ,
161
- clipboard_svg : & ' static static_files:: StaticFile ,
162
159
typ : & ' a str ,
163
160
name : & ' a str ,
164
161
item_type : & ' a str ,
@@ -178,12 +175,7 @@ fn print_where_clause_and_check<'a, 'tcx: 'a>(
178
175
len_before != buffer. len ( )
179
176
}
180
177
181
- pub ( super ) fn print_item (
182
- cx : & mut Context < ' _ > ,
183
- item : & clean:: Item ,
184
- buf : & mut Buffer ,
185
- page : & Page < ' _ > ,
186
- ) {
178
+ pub ( super ) fn print_item ( cx : & mut Context < ' _ > , item : & clean:: Item , buf : & mut Buffer ) {
187
179
debug_assert ! ( !item. is_stripped( ) ) ;
188
180
let typ = match * item. kind {
189
181
clean:: ModuleItem ( _) => {
@@ -252,8 +244,6 @@ pub(super) fn print_item(
252
244
} ;
253
245
254
246
let item_vars = ItemVars {
255
- static_root_path : & page. get_static_root_path ( ) ,
256
- clipboard_svg : & static_files:: STATIC_FILES . clipboard_svg ,
257
247
typ,
258
248
name : item. name . as_ref ( ) . unwrap ( ) . as_str ( ) ,
259
249
item_type : & item. type_ ( ) . to_string ( ) ,
0 commit comments