Skip to content

Commit

Permalink
clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fafhrd91 committed Sep 2, 2020
1 parent 01c3b7a commit 42ef962
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

* Fix packet ordering

* Check default router service readiness

* v5: Fix in/out bound frame size checks in codec

## [0.3.7] - 2020-09-02
Expand Down
2 changes: 1 addition & 1 deletion src/v5/codec/codec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl Codec {
pub fn max_outbound_size(mut self, mut size: u32) -> Self {
if size > 5 {
// fixed header = 1, var_len(remaining.max_value()) = 4
size = size - 5;
size -= 5;
}
self.max_out_size = size;
self
Expand Down

0 comments on commit 42ef962

Please sign in to comment.