core/muxing: Rename close to poll_close (#2666)

It is common practise to prefix functions that return a `Poll` with
`poll_`.
This commit is contained in:
Thomas Eizinger
2022-05-29 16:27:40 +02:00
committed by GitHub
parent 8361fabb47
commit 25c8bc24de
9 changed files with 16 additions and 14 deletions

View File

@ -346,10 +346,10 @@ where
}
}
fn close(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
fn poll_close(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>> {
match self {
EitherOutput::First(inner) => inner.close(cx).map_err(|e| e.into()),
EitherOutput::Second(inner) => inner.close(cx).map_err(|e| e.into()),
EitherOutput::First(inner) => inner.poll_close(cx).map_err(|e| e.into()),
EitherOutput::Second(inner) => inner.poll_close(cx).map_err(|e| e.into()),
}
}