Commit 367893a
committed
Use abs_diff as suggested by clippy
error: manual absolute difference pattern without using `abs_diff`
--> x11rb/src/xcb_ffi/mod.rs:692:9
|
692 | / if value > recent {
693 | | value - recent
694 | | } else {
695 | | recent - value
696 | | }
| |_________^ help: replace with `abs_diff`: `value.abs_diff(recent)`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#manual_abs_diff
Signed-off-by: Uli Schlachter <psychon@znc.in>1 parent 83a443b commit 367893a
1 file changed
+1
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
688 | 688 | | |
689 | 689 | | |
690 | 690 | | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
| 691 | + | |
698 | 692 | | |
699 | 693 | | |
700 | 694 | | |
| |||
0 commit comments