summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-09-21 11:36:40 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2021-09-30 08:31:01 +0300
commit56d09f8d182eb0b737213311475e9f9a53984bac (patch)
tree68c43d4639513649862b7e24b839f10e57e0cfa0 /net
parenteec7b10558fd07a0cbcf04e1734bccea96335d4b (diff)
Use a clearer and shorter += or /= operation
Rewrite: i = i + 1 as i += 1 For a simple variable this is shorter, and a little bit clearer. For more complex expressions it avoids making the reader having to visually check that the left and right hand side of the assignment really do have the same expression and that nothing tricky is going on. This was found by the clippy lint assign_op_pattern: https://rust-lang.github.io/rust-clippy/master/index.html#assign_op_pattern
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions