-
Notifications
You must be signed in to change notification settings - Fork 15
Upgrade dependencies #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
4e35f68
aaeb58d
b878cff
94d5bd7
5e03441
7d29efe
3051c13
139be43
7b4603d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,21 +9,18 @@ readme = "README.md" | |
edition = "2018" | ||
keywords = ["async", "server-sent-events", "sse", "client", "server"] | ||
categories = [] | ||
authors = [ | ||
"Renée Kooi <[email protected]>", | ||
"Yoshua Wuyts <[email protected]>", | ||
] | ||
authors = ["Renée Kooi <[email protected]>", "Yoshua Wuyts <[email protected]>"] | ||
|
||
[features] | ||
|
||
[dependencies] | ||
futures-lite = "1.11.3" | ||
http-types = { version = "2.10.0", default-features = false } | ||
log = "0.4.8" | ||
memchr = "2.3.3" | ||
pin-project-lite = "0.2.7" | ||
async-channel = "1.1.1" | ||
futures-lite = "2.6.0" | ||
http-types = { version = "2.12.0", default-features = false } | ||
log = "0.4.27" | ||
memchr = "2.7.5" | ||
pin-project-lite = "0.2.16" | ||
async-channel = "2.5.0" | ||
|
||
[dev-dependencies] | ||
femme = "2.0.0" | ||
async-std = { version = "1.6.0", features = ["attributes", "unstable"] } | ||
femme = "2.2.1" | ||
async-std = { version = "1.13.1", features = ["attributes", "unstable"] } |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ pin_project! { | |
impl<R> Lines<R> { | ||
pub(crate) fn new(reader: R) -> Lines<R> | ||
where | ||
R: AsyncBufRead + Unpin + Sized, | ||
R: AsyncBufRead + Sized, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I removed |
||
{ | ||
Lines { | ||
reader, | ||
|
@@ -64,7 +64,7 @@ impl<R: AsyncBufRead> Stream for Lines<R> { | |
if this.buf.ends_with('\r') { | ||
this.buf.pop(); | ||
} | ||
Poll::Ready(Some(Ok(mem::replace(this.buf, String::new())))) | ||
Poll::Ready(Some(Ok(std::mem::take(this.buf)))) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
} | ||
} | ||
|
||
|
@@ -76,7 +76,7 @@ fn read_line_internal<R: AsyncBufRead + ?Sized>( | |
read: &mut usize, | ||
) -> Poll<io::Result<usize>> { | ||
let ret = ready!(read_until_internal(reader, cx, bytes, read)); | ||
if str::from_utf8(&bytes).is_err() { | ||
if str::from_utf8(bytes).is_err() { | ||
Poll::Ready(ret.and_then(|_| { | ||
Err(io::Error::new( | ||
io::ErrorKind::InvalidData, | ||
|
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't find any usage of this
buffer
field