Skip to content

Commit 0ce7fb6

Browse files
committed
fixed extra to_string call
1 parent caf3aa5 commit 0ce7fb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ch10/e-coroutines-pin/src/http.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl Future for HttpGetFuture {
6464
Ok(0) => {
6565
let s = String::from_utf8_lossy(&self.buffer).to_string();
6666
runtime::reactor().deregister(self.stream.as_mut().unwrap(), id);
67-
break PollState::Ready(s.to_string());
67+
break PollState::Ready(s);
6868
}
6969
Ok(n) => {
7070
self.buffer.extend(&buff[0..n]);

0 commit comments

Comments
 (0)