@@ -252,24 +252,24 @@ pub(super) fn print_item(cx: &Context<'_>, item: &clean::Item, buf: &mut String)
252252 item_vars. render_into ( buf) . unwrap ( ) ;
253253
254254 match & item. kind {
255- clean:: ModuleItem ( ref m) => item_module ( buf, cx, item, & m. items ) ,
256- clean:: FunctionItem ( ref f) | clean:: ForeignFunctionItem ( ref f, _) => {
255+ clean:: ModuleItem ( m) => item_module ( buf, cx, item, & m. items ) ,
256+ clean:: FunctionItem ( f) | clean:: ForeignFunctionItem ( f, _) => {
257257 item_function ( buf, cx, item, f)
258258 }
259- clean:: TraitItem ( ref t) => item_trait ( buf, cx, item, t) ,
260- clean:: StructItem ( ref s) => item_struct ( buf, cx, item, s) ,
261- clean:: UnionItem ( ref s) => item_union ( buf, cx, item, s) ,
262- clean:: EnumItem ( ref e) => item_enum ( buf, cx, item, e) ,
263- clean:: TypeAliasItem ( ref t) => item_type_alias ( buf, cx, item, t) ,
264- clean:: MacroItem ( ref m) => item_macro ( buf, cx, item, m) ,
265- clean:: ProcMacroItem ( ref m) => item_proc_macro ( buf, cx, item, m) ,
259+ clean:: TraitItem ( t) => item_trait ( buf, cx, item, t) ,
260+ clean:: StructItem ( s) => item_struct ( buf, cx, item, s) ,
261+ clean:: UnionItem ( s) => item_union ( buf, cx, item, s) ,
262+ clean:: EnumItem ( e) => item_enum ( buf, cx, item, e) ,
263+ clean:: TypeAliasItem ( t) => item_type_alias ( buf, cx, item, t) ,
264+ clean:: MacroItem ( m) => item_macro ( buf, cx, item, m) ,
265+ clean:: ProcMacroItem ( m) => item_proc_macro ( buf, cx, item, m) ,
266266 clean:: PrimitiveItem ( _) => item_primitive ( buf, cx, item) ,
267- clean:: StaticItem ( ref i) => item_static ( buf, cx, item, i, None ) ,
268- clean:: ForeignStaticItem ( ref i, safety) => item_static ( buf, cx, item, i, Some ( * safety) ) ,
267+ clean:: StaticItem ( i) => item_static ( buf, cx, item, i, None ) ,
268+ clean:: ForeignStaticItem ( i, safety) => item_static ( buf, cx, item, i, Some ( * safety) ) ,
269269 clean:: ConstantItem ( ci) => item_constant ( buf, cx, item, & ci. generics , & ci. type_ , & ci. kind ) ,
270270 clean:: ForeignTypeItem => item_foreign_type ( buf, cx, item) ,
271271 clean:: KeywordItem => item_keyword ( buf, cx, item) ,
272- clean:: TraitAliasItem ( ref ta) => item_trait_alias ( buf, cx, item, ta) ,
272+ clean:: TraitAliasItem ( ta) => item_trait_alias ( buf, cx, item, ta) ,
273273 _ => {
274274 // We don't generate pages for any other type.
275275 unreachable ! ( ) ;
@@ -973,7 +973,7 @@ fn item_trait(w: &mut String, cx: &Context<'_>, it: &clean::Item, t: &clean::Tra
973973 extern_crates. insert ( did. krate ) ;
974974 }
975975 match implementor. inner_impl ( ) . for_ . without_borrowed_ref ( ) {
976- clean:: Type :: Path { ref path } if !path. is_assoc_ty ( ) => {
976+ clean:: Type :: Path { path } if !path. is_assoc_ty ( ) => {
977977 let did = path. def_id ( ) ;
978978 let & mut ( prev_did, ref mut has_duplicates) =
979979 implementor_dups. entry ( path. last ( ) ) . or_insert ( ( did, false ) ) ;
0 commit comments