small refactoring (#6531)

This commit is contained in:
Thomas Coratger
2024-02-10 22:21:40 +01:00
committed by GitHub
parent 1bc75d974d
commit 8cfa5efe62
6 changed files with 21 additions and 35 deletions

View File

@ -22,6 +22,7 @@
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
// DEALINGS IN THE SOFTWARE.
use crate::stream::HasRemoteAddr;
use std::{
convert::TryFrom as _,
io,
@ -38,8 +39,6 @@ use tokio::{
net::TcpStream,
};
use crate::stream::HasRemoteAddr;
/// Meters bandwidth usage of streams
#[derive(Debug)]
struct BandwidthMeterInner {