mirror of
https://github.com/tokio-rs/axum.git
synced 2026-09-08 00:00:24 +02:00
Fix new clippy lints (#3304)
This commit is contained in:
@@ -110,7 +110,7 @@ where
|
||||
// so we can call `AsyncRead::lines` and then convert it back to a `Stream`
|
||||
let body = req.into_body();
|
||||
let stream = body.into_data_stream();
|
||||
let stream = stream.map_err(|err| io::Error::new(io::ErrorKind::Other, err));
|
||||
let stream = stream.map_err(io::Error::other);
|
||||
let read = StreamReader::new(stream);
|
||||
let lines_stream = LinesStream::new(read.lines());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user