clippy: remove a loop{} which never actually loops
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
44fed91e17
commit
bd430c225b
|
@ -30,7 +30,6 @@ impl Future for PipeToSendStream {
|
||||||
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output> {
|
fn poll(self: Pin<&mut Self>, cx: &mut Context) -> Poll<Self::Output> {
|
||||||
let this = self.get_mut();
|
let this = self.get_mut();
|
||||||
|
|
||||||
loop {
|
|
||||||
if this.data != None {
|
if this.data != None {
|
||||||
// just reserve 1 byte to make sure there's some
|
// just reserve 1 byte to make sure there's some
|
||||||
// capacity available. h2 will handle the capacity
|
// capacity available. h2 will handle the capacity
|
||||||
|
@ -70,5 +69,4 @@ impl Future for PipeToSendStream {
|
||||||
return Poll::Ready(Ok(()));
|
return Poll::Ready(Ok(()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue