mirror of
https://git.asonix.dog/asonix/pict-rs.git
synced 2025-02-24 09:26:18 +00:00
BytesReader: Remove unneeded try_recv
This commit is contained in:
parent
c8817db997
commit
ae785fa8fc
1 changed files with 1 additions and 3 deletions
|
@ -1,5 +1,3 @@
|
|||
use std::io::BufRead;
|
||||
|
||||
use actix_web::web::Bytes;
|
||||
|
||||
pub(crate) struct BytesReader {
|
||||
|
@ -80,7 +78,7 @@ impl std::io::BufRead for BytesReader {
|
|||
|
||||
impl std::io::Read for BytesReader {
|
||||
fn read(&mut self, buf: &mut [u8]) -> std::io::Result<usize> {
|
||||
self.try_recv()?;
|
||||
use std::io::BufRead;
|
||||
|
||||
let mut written = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue