Skip to content

Commit

Permalink
unwrapper: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jordens committed Sep 15, 2023
1 parent e244de8 commit 0c4d593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unwrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ where
pub fn update(&mut self, x: T) -> (T, i32) {
let (dx, dw) = overflowing_sub(x, self.x);
self.x = x;
self.w = self.w.wrapping_add(dw as i32);
self.w = self.w.wrapping_add(dw);
(dx, self.w)
}

Expand Down

0 comments on commit 0c4d593

Please sign in to comment.