Stream::Read -> Stream::Cursor

This commit is contained in:
Martin Algesten
2018-06-14 17:02:29 +02:00
parent f2c3f351ca
commit d7ebe52df2
2 changed files with 5 additions and 5 deletions

View File

@@ -249,7 +249,7 @@ impl FromStr for Response {
let bytes = s.as_bytes().to_owned();
let mut cursor = Cursor::new(bytes);
let mut resp = Self::do_from_read(&mut cursor)?;
resp.set_stream(Stream::Read(Box::new(cursor)));
resp.set_stream(Stream::Cursor(cursor));
Ok(resp)
}
}