BytesReader: Remove unneeded try_recv

This commit is contained in:
asonix 2025-02-08 14:39:21 -06:00
parent c8817db997
commit ae785fa8fc

View file

@ -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;