run rustfmt
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
use bytes::{Bytes, buf::Reader};
|
use bytes::{buf::Reader, Bytes};
|
||||||
use std::sync::{Arc, Condvar, Mutex};
|
use std::sync::{Arc, Condvar, Mutex};
|
||||||
|
|
||||||
use warp::http;
|
use warp::http;
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ use crate::types::*;
|
|||||||
use bytes::Buf;
|
use bytes::Buf;
|
||||||
pub use scryer_modular_bitfield::prelude::*;
|
pub use scryer_modular_bitfield::prelude::*;
|
||||||
|
|
||||||
|
#[cfg(feature = "http")]
|
||||||
|
use bytes::{buf::Reader as BufReader, Bytes};
|
||||||
use std::cmp::Ordering;
|
use std::cmp::Ordering;
|
||||||
use std::error::Error;
|
use std::error::Error;
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
@@ -22,8 +24,6 @@ use std::fmt::Debug;
|
|||||||
use std::fs::{File, OpenOptions};
|
use std::fs::{File, OpenOptions};
|
||||||
use std::hash::Hash;
|
use std::hash::Hash;
|
||||||
use std::io;
|
use std::io;
|
||||||
#[cfg(feature = "http")]
|
|
||||||
use bytes::{buf::Reader as BufReader, Bytes};
|
|
||||||
use std::io::{Cursor, ErrorKind, Read, Seek, SeekFrom, Write};
|
use std::io::{Cursor, ErrorKind, Read, Seek, SeekFrom, Write};
|
||||||
use std::net::{Shutdown, TcpStream};
|
use std::net::{Shutdown, TcpStream};
|
||||||
use std::ops::{Deref, DerefMut};
|
use std::ops::{Deref, DerefMut};
|
||||||
@@ -1136,13 +1136,19 @@ impl Stream {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Stream::HttpRead(stream_layout) => {
|
Stream::HttpRead(stream_layout) => {
|
||||||
if stream_layout.stream.get_ref().body_reader.get_ref().has_remaining() {
|
if stream_layout
|
||||||
AtEndOfStream::Not
|
.stream
|
||||||
} else {
|
.get_ref()
|
||||||
AtEndOfStream::Past
|
.body_reader
|
||||||
}
|
.get_ref()
|
||||||
}
|
.has_remaining()
|
||||||
|
{
|
||||||
|
AtEndOfStream::Not
|
||||||
|
} else {
|
||||||
|
AtEndOfStream::Past
|
||||||
|
}
|
||||||
|
}
|
||||||
_ => AtEndOfStream::Not,
|
_ => AtEndOfStream::Not,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user