File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1310,7 +1310,7 @@ impl EarlyLintPass for UnusedParens {
1310
1310
}
1311
1311
ast:: TyKind :: TraitObject ( bounds, _) | ast:: TyKind :: ImplTrait ( _, bounds) => {
1312
1312
for i in 0 ..bounds. len ( ) {
1313
- let last = i == bounds. len ( ) - 1 ;
1313
+ let is_last = i == bounds. len ( ) - 1 ;
1314
1314
1315
1315
if let ast:: GenericBound :: Trait ( poly_trait_ref) = & bounds[ i] {
1316
1316
let fn_with_explicit_ret_ty = if let [ .., segment] =
@@ -1321,7 +1321,7 @@ impl EarlyLintPass for UnusedParens {
1321
1321
{
1322
1322
self . in_no_bounds_pos . insert (
1323
1323
ret_ty. id ,
1324
- if last {
1324
+ if is_last {
1325
1325
NoBoundsException :: OneBound
1326
1326
} else {
1327
1327
NoBoundsException :: None
@@ -1345,7 +1345,7 @@ impl EarlyLintPass for UnusedParens {
1345
1345
. unwrap_or ( false ) ;
1346
1346
1347
1347
if let ast:: Grouping :: Parenthesized = poly_trait_ref. grouping
1348
- && ( last || !fn_with_explicit_ret_ty)
1348
+ && ( is_last || !fn_with_explicit_ret_ty)
1349
1349
&& !dyn2015_exception
1350
1350
{
1351
1351
let s = poly_trait_ref. span ;
You can’t perform that action at this time.
0 commit comments