@@ -299,8 +299,8 @@ impl DeriveWhere {
299
299
}
300
300
}
301
301
302
- /// Holds the first part of a [`PredicateType`] prior to the `:`. Optionally contains lifetime `for`
303
- /// bindings.
302
+ /// Holds the first part of a [`PredicateType`] prior to the `:`. Optionally
303
+ /// contains lifetime `for` bindings.
304
304
#[ derive( Eq , PartialEq ) ]
305
305
pub struct GenericNoBound {
306
306
/// Any `for<'a, 'b, 'etc>` bindings for the type.
@@ -318,12 +318,14 @@ impl Parse for GenericNoBound {
318
318
}
319
319
}
320
320
321
- /// Holds a single generic [type](GenericNoBound) with optional lifetime bounds or [type with bound](PredicateType).
321
+ /// Holds a single generic [type](GenericNoBound) with optional lifetime bounds
322
+ /// or [type with bound](PredicateType).
322
323
#[ derive( Eq , PartialEq ) ]
323
324
pub enum Generic {
324
325
/// Generic type with custom [specified bounds](PredicateType).
325
326
CustomBound ( PredicateType ) ,
326
- /// Generic [type](GenericNoBound) which will be bound to the [`DeriveTrait`].
327
+ /// Generic [type](GenericNoBound) which will be bound to the
328
+ /// [`DeriveTrait`].
327
329
NoBound ( GenericNoBound ) ,
328
330
}
329
331
@@ -332,8 +334,8 @@ impl Parse for Generic {
332
334
let fork = input. fork ( ) ;
333
335
334
336
// Try to parse input as a `WherePredicate`. The problem is, both expressions
335
- // start with an optional lifetime for bound and then Type, so starting with the `WherePredicate` is the easiest way
336
- // of differentiating them.
337
+ // start with an optional lifetime for bound and then Type, so starting with the
338
+ // `WherePredicate` is the easiest way of differentiating them.
337
339
if let Ok ( where_predicate) = WherePredicate :: parse ( & fork) {
338
340
input. advance_to ( & fork) ;
339
341
0 commit comments