@@ -1237,22 +1237,18 @@ fn item_opaque_ty(
12371237}
12381238
12391239fn item_type_alias ( w : & mut Buffer , cx : & mut Context < ' _ > , it : & clean:: Item , t : & clean:: TypeAlias ) {
1240- fn write_content ( w : & mut Buffer , cx : & Context < ' _ > , it : & clean:: Item , t : & clean:: TypeAlias ) {
1241- wrap_item ( w, |w| {
1242- write ! (
1243- w,
1244- "{attrs}{vis}type {name}{generics}{where_clause} = {type_};" ,
1245- attrs = render_attributes_in_pre( it, "" , cx) ,
1246- vis = visibility_print_with_space( it, cx) ,
1247- name = it. name. unwrap( ) ,
1248- generics = t. generics. print( cx) ,
1249- where_clause = print_where_clause( & t. generics, cx, 0 , Ending :: Newline ) ,
1250- type_ = t. type_. print( cx) ,
1251- ) ;
1252- } ) ;
1253- }
1254-
1255- write_content ( w, cx, it, t) ;
1240+ wrap_item ( w, |w| {
1241+ write ! (
1242+ w,
1243+ "{attrs}{vis}type {name}{generics}{where_clause} = {type_};" ,
1244+ attrs = render_attributes_in_pre( it, "" , cx) ,
1245+ vis = visibility_print_with_space( it, cx) ,
1246+ name = it. name. unwrap( ) ,
1247+ generics = t. generics. print( cx) ,
1248+ where_clause = print_where_clause( & t. generics, cx, 0 , Ending :: Newline ) ,
1249+ type_ = t. type_. print( cx) ,
1250+ ) ;
1251+ } ) ;
12561252
12571253 write ! ( w, "{}" , document( cx, it, None , HeadingOffset :: H2 ) ) ;
12581254
0 commit comments