From e2b83e3082f3b1d06d15fbee8f503f1755fd67a3 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 7 Mar 2021 10:41:53 +0000 Subject: [PATCH] fix awc itoa import --- actix-http/src/h2/dispatcher.rs | 9 ++------- awc/Cargo.toml | 3 ++- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/actix-http/src/h2/dispatcher.rs b/actix-http/src/h2/dispatcher.rs index 003a7034e..8e01afcb5 100644 --- a/actix-http/src/h2/dispatcher.rs +++ b/actix-http/src/h2/dispatcher.rs @@ -1,10 +1,5 @@ -use std::future::Future; -use std::marker::PhantomData; -use std::net; -use std::pin::Pin; -use std::rc::Rc; use std::task::{Context, Poll}; -use std::{cmp, convert::TryFrom}; +use std::{cmp, future::Future, marker::PhantomData, net, pin::Pin, rc::Rc}; use actix_codec::{AsyncRead, AsyncWrite}; use actix_rt::time::{Instant, Sleep}; @@ -208,7 +203,7 @@ where res.headers_mut().insert( CONTENT_LENGTH, - HeaderValue::from_str(buf.format(len)).unwrap(), + HeaderValue::from_str(buf.format(*len)).unwrap(), ) } }; diff --git a/awc/Cargo.toml b/awc/Cargo.toml index ca345d3cb..761871ba2 100644 --- a/awc/Cargo.toml +++ b/awc/Cargo.toml @@ -54,6 +54,7 @@ bytes = "1" cfg-if = "1.0" derive_more = "0.99.5" futures-core = { version = "0.3.7", default-features = false } +itoa = "0.4" log =" 0.4" mime = "0.3" percent-encoding = "2.1" @@ -80,8 +81,8 @@ actix-server = "2.0.0-beta.3" actix-tls = { version = "3.0.0-beta.4", features = ["openssl", "rustls"] } brotli2 = "0.3.2" +env_logger = "0.8" flate2 = "1.0.13" futures-util = { version = "0.3.7", default-features = false } -env_logger = "0.8" rcgen = "0.8" webpki = "0.21"