Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
grishasobol committed Mar 5, 2024
1 parent b0f6ee2 commit 748a871
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/src/message/handle.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl HandlePacket {
/// Prepend payload.
pub(super) fn try_prepend(&mut self, mut data: Payload) -> Result<(), Payload> {
if data.try_extend_from_slice(self.payload_bytes()).is_err() {
return Err(data);
Err(data)
} else {
self.payload = data;
Ok(())
Expand Down
2 changes: 1 addition & 1 deletion core/src/message/reply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ impl ReplyPacket {
/// Prepend payload.
pub(super) fn try_prepend(&mut self, mut data: Payload) -> Result<(), Payload> {
if data.try_extend_from_slice(self.payload_bytes()).is_err() {
return Err(data);
Err(data)
} else {
self.payload = data;
Ok(())
Expand Down

0 comments on commit 748a871

Please sign in to comment.