clippy: remove a loop{} which never actually loops

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-09-11 12:31:39 +02:00
parent 44fed91e17
commit bd430c225b
1 changed files with 26 additions and 28 deletions

View File

@ -30,7 +30,6 @@ impl Future for PipeToSendStream {
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output> {
let this = self.get_mut();
loop {
if this.data != None {
// just reserve 1 byte to make sure there's some
// capacity available. h2 will handle the capacity
@ -70,5 +69,4 @@ impl Future for PipeToSendStream {
return Poll::Ready(Ok(()));
}
}
}
}