Clippy lint griping:
Uncategorized
2
Posts
2
Posters
0
Views
-
Clippy lint griping:
I deliberately write redundant expressions so that the overall structure is more directly apparent.
```
result += data[x * 4 + 0];
result += data[x * 4 + 1];
result += data[x * 4 + 2];
result += data[x * 4 + 3];
```I know that +0 doesn't do anything! I wrote it that way for a reason!
-
Clippy lint griping:
I deliberately write redundant expressions so that the overall structure is more directly apparent.
```
result += data[x * 4 + 0];
result += data[x * 4 + 1];
result += data[x * 4 + 2];
result += data[x * 4 + 3];
```I know that +0 doesn't do anything! I wrote it that way for a reason!
@dotstdy i do that all the time! Also sometimes even just blah[0] instead of (*blah) if it reads better.
-
undefined oblomov@sociale.network shared this topic