Skip to content

Commit

Permalink
pipe: add missing return in pipe's operator='s
Browse files Browse the repository at this point in the history
pipe_reader's and pipe_writer's operator= were missing
their return statements, which are now added.
Message-Id: <ba32476100e2cb4aeaa57ab3242f07c020b277df.1659012359.git.sarna@scylladb.com>
  • Loading branch information
psarna authored and xemul committed Jul 28, 2022
1 parent 5b34dfe commit 6b0eb96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/seastar/core/pipe.hh
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ public:
}
pipe_reader& operator=(pipe_reader&& other) noexcept {
std::swap(_bufp, other._bufp);
return *this;
}
};

Expand Down Expand Up @@ -221,6 +222,7 @@ public:
}
pipe_writer& operator=(pipe_writer&& other) noexcept {
std::swap(_bufp, other._bufp);
return *this;
}
};

Expand Down

0 comments on commit 6b0eb96

Please sign in to comment.