mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2025-02-11 12:35:26 +00:00
msg_socket: AsyncReceiver doesn't need a mut ref
The AsyncReceiver doesn't need to modify the message receiver so let it take a plain old borrow. Change-Id: I07e93d2ed12327dd893fec654d2bdd613a848fe6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2167694 Tested-by: kokoro <noreply+kokoro@google.com> Tested-by: Dylan Reid <dgreid@chromium.org> Commit-Queue: Dylan Reid <dgreid@chromium.org> Reviewed-by: Chirantan Ekbote <chirantan@chromium.org>
This commit is contained in:
parent
4080f8b2d3
commit
a7237949da
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ impl<I: MsgOnSocket, O: MsgOnSocket> MsgSocket<I, O> {
|
|||
}
|
||||
|
||||
// Creates an async receiver that implements `futures::Stream`.
|
||||
pub fn async_receiver(&mut self) -> MsgResult<AsyncReceiver<I, O>> {
|
||||
pub fn async_receiver(&self) -> MsgResult<AsyncReceiver<I, O>> {
|
||||
AsyncReceiver::new(self)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue