@@ -68,7 +68,6 @@ use serde::{Serialize, Serializer};
6868use crate :: clean:: { self , AttributesExt , GetDefId , RenderedLink , SelfTy , TypeKind } ;
6969use crate :: config:: { RenderInfo , RenderOptions } ;
7070use crate :: docfs:: { DocFS , PathError } ;
71- use crate :: doctree;
7271use crate :: error:: Error ;
7372use crate :: formats:: cache:: { cache, Cache } ;
7473use crate :: formats:: item_type:: ItemType ;
@@ -3101,7 +3100,7 @@ fn item_struct(
31013100 _ => None ,
31023101 } )
31033102 . peekable ( ) ;
3104- if let doctree :: Plain = s. struct_type {
3103+ if let clean :: StructType :: Plain = s. struct_type {
31053104 if fields. peek ( ) . is_some ( ) {
31063105 write ! (
31073106 w,
@@ -3351,7 +3350,7 @@ fn render_struct(
33513350 w : & mut Buffer ,
33523351 it : & clean:: Item ,
33533352 g : Option < & clean:: Generics > ,
3354- ty : doctree :: StructType ,
3353+ ty : clean :: StructType ,
33553354 fields : & [ clean:: Item ] ,
33563355 tab : & str ,
33573356 structhead : bool ,
@@ -3368,7 +3367,7 @@ fn render_struct(
33683367 write ! ( w, "{}" , g. print( ) )
33693368 }
33703369 match ty {
3371- doctree :: Plain => {
3370+ clean :: StructType :: Plain => {
33723371 if let Some ( g) = g {
33733372 write ! ( w, "{}" , WhereClause { gens: g, indent: 0 , end_newline: true } )
33743373 }
@@ -3400,7 +3399,7 @@ fn render_struct(
34003399 }
34013400 write ! ( w, "}}" ) ;
34023401 }
3403- doctree :: Tuple => {
3402+ clean :: StructType :: Tuple => {
34043403 write ! ( w, "(" ) ;
34053404 for ( i, field) in fields. iter ( ) . enumerate ( ) {
34063405 if i > 0 {
@@ -3425,7 +3424,7 @@ fn render_struct(
34253424 }
34263425 write ! ( w, ";" ) ;
34273426 }
3428- doctree :: Unit => {
3427+ clean :: StructType :: Unit => {
34293428 // Needed for PhantomData.
34303429 if let Some ( g) = g {
34313430 write ! ( w, "{}" , WhereClause { gens: g, indent: 0 , end_newline: false } )
@@ -4460,7 +4459,7 @@ fn sidebar_struct(cx: &Context<'_>, buf: &mut Buffer, it: &clean::Item, s: &clea
44604459 let fields = get_struct_fields_name ( & s. fields ) ;
44614460
44624461 if !fields. is_empty ( ) {
4463- if let doctree :: Plain = s. struct_type {
4462+ if let clean :: StructType :: Plain = s. struct_type {
44644463 sidebar. push_str ( & format ! (
44654464 "<a class=\" sidebar-title\" href=\" #fields\" >Fields</a>\
44664465 <div class=\" sidebar-links\" >{}</div>",
0 commit comments