@@ -198,7 +198,7 @@ pub fn krate(mut cx: &mut DocContext<'_>) -> Crate {
198
198
Item {
199
199
source : Span :: empty ( ) ,
200
200
name : Some ( kw. clone ( ) ) ,
201
- attrs : attrs ,
201
+ attrs,
202
202
visibility : Public ,
203
203
stability : get_stability ( cx, def_id) ,
204
204
deprecation : get_deprecation ( cx, def_id) ,
@@ -1570,7 +1570,7 @@ impl Clean<GenericParamDef> for hir::GenericParam {
1570
1570
did : cx. tcx . hir ( ) . local_def_id ( self . hir_id ) ,
1571
1571
bounds : self . bounds . clean ( cx) ,
1572
1572
default : default. clean ( cx) ,
1573
- synthetic : synthetic ,
1573
+ synthetic,
1574
1574
} )
1575
1575
}
1576
1576
hir:: GenericParamKind :: Const { ref ty } => {
@@ -2213,7 +2213,7 @@ impl Clean<Item> for doctree::Trait<'_> {
2213
2213
let is_spotlight = attrs. has_doc_flag ( sym:: spotlight) ;
2214
2214
Item {
2215
2215
name : Some ( self . name . clean ( cx) ) ,
2216
- attrs : attrs ,
2216
+ attrs,
2217
2217
source : self . whence . clean ( cx) ,
2218
2218
def_id : cx. tcx . hir ( ) . local_def_id ( self . id ) ,
2219
2219
visibility : self . vis . clean ( cx) ,
@@ -2844,7 +2844,7 @@ impl Clean<Type> for hir::Ty {
2844
2844
} else {
2845
2845
Some ( l. clean ( cx) )
2846
2846
} ;
2847
- BorrowedRef { lifetime : lifetime , mutability : m. mutbl . clean ( cx) ,
2847
+ BorrowedRef { lifetime, mutability : m. mutbl . clean ( cx) ,
2848
2848
type_ : box m. ty . clean ( cx) }
2849
2849
}
2850
2850
TyKind :: Slice ( ref ty) => Slice ( box ty. clean ( cx) ) ,
@@ -3102,9 +3102,9 @@ impl<'tcx> Clean<Type> for Ty<'tcx> {
3102
3102
let path = external_path ( cx, cx. tcx . item_name ( did) ,
3103
3103
None , false , vec ! [ ] , InternalSubsts :: empty ( ) ) ;
3104
3104
ResolvedPath {
3105
- path : path ,
3105
+ path,
3106
3106
param_names : None ,
3107
- did : did ,
3107
+ did,
3108
3108
is_generic : false ,
3109
3109
}
3110
3110
}
@@ -4274,7 +4274,7 @@ fn resolve_type(cx: &DocContext<'_>,
4274
4274
_ => false ,
4275
4275
} ;
4276
4276
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 }
4278
4278
}
4279
4279
4280
4280
pub fn register_res ( cx : & DocContext < ' _ > , res : Res ) -> DefId {
0 commit comments