@@ -198,7 +198,7 @@ pub fn krate(mut cx: &mut DocContext<'_>) -> Crate {
198198 Item {
199199 source : Span :: empty ( ) ,
200200 name : Some ( kw. clone ( ) ) ,
201- attrs : attrs ,
201+ attrs,
202202 visibility : Public ,
203203 stability : get_stability ( cx, def_id) ,
204204 deprecation : get_deprecation ( cx, def_id) ,
@@ -1570,7 +1570,7 @@ impl Clean<GenericParamDef> for hir::GenericParam {
15701570 did : cx. tcx . hir ( ) . local_def_id ( self . hir_id ) ,
15711571 bounds : self . bounds . clean ( cx) ,
15721572 default : default. clean ( cx) ,
1573- synthetic : synthetic ,
1573+ synthetic,
15741574 } )
15751575 }
15761576 hir:: GenericParamKind :: Const { ref ty } => {
@@ -2213,7 +2213,7 @@ impl Clean<Item> for doctree::Trait<'_> {
22132213 let is_spotlight = attrs. has_doc_flag ( sym:: spotlight) ;
22142214 Item {
22152215 name : Some ( self . name . clean ( cx) ) ,
2216- attrs : attrs ,
2216+ attrs,
22172217 source : self . whence . clean ( cx) ,
22182218 def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
22192219 visibility : self . vis . clean ( cx) ,
@@ -2844,7 +2844,7 @@ impl Clean<Type> for hir::Ty {
28442844 } else {
28452845 Some ( l. clean ( cx) )
28462846 } ;
2847- BorrowedRef { lifetime : lifetime , mutability : m. mutbl . clean ( cx) ,
2847+ BorrowedRef { lifetime, mutability : m. mutbl . clean ( cx) ,
28482848 type_ : box m. ty . clean ( cx) }
28492849 }
28502850 TyKind :: Slice ( ref ty) => Slice ( box ty. clean ( cx) ) ,
@@ -3102,9 +3102,9 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
31023102 let path = external_path ( cx, cx. tcx . item_name ( did) ,
31033103 None , false , vec ! [ ] , InternalSubsts :: empty ( ) ) ;
31043104 ResolvedPath {
3105- path : path ,
3105+ path,
31063106 param_names : None ,
3107- did : did ,
3107+ did,
31083108 is_generic : false ,
31093109 }
31103110 }
@@ -4274,7 +4274,7 @@ fn resolve_type(cx: &DocContext<'_>,
42744274 _ => false ,
42754275 } ;
42764276 let did = register_res ( & * cx, path. res ) ;
4277- ResolvedPath { path : path , param_names : None , did : did , is_generic : is_generic }
4277+ ResolvedPath { path, param_names : None , did, is_generic }
42784278}
42794279
42804280pub fn register_res ( cx : & DocContext < ' _ > , res : Res ) -> DefId {
0 commit comments