We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent caf3aa5 commit 0ce7fb6Copy full SHA for 0ce7fb6
ch10/e-coroutines-pin/src/http.rs
@@ -64,7 +64,7 @@ impl Future for HttpGetFuture {
64
Ok(0) => {
65
let s = String::from_utf8_lossy(&self.buffer).to_string();
66
runtime::reactor().deregister(self.stream.as_mut().unwrap(), id);
67
- break PollState::Ready(s.to_string());
+ break PollState::Ready(s);
68
}
69
Ok(n) => {
70
self.buffer.extend(&buff[0..n]);
0 commit comments