Skip to content

Commit

Permalink
style: Remove duplicate function call (#989)
Browse files Browse the repository at this point in the history
Co-authored-by: Lucio Franco <luciofranco14@gmail.com>
  • Loading branch information
caspermeijn and LucioFranco committed Feb 28, 2024
1 parent b785e6a commit 80f2f7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pub trait Message: Debug + Send + Sync {
{
let required = self.encoded_len();
let remaining = buf.remaining_mut();
if required > buf.remaining_mut() {
if required > remaining {
return Err(EncodeError::new(required, remaining));
}

Expand Down

0 comments on commit 80f2f7a

Please sign in to comment.