1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-24 22:37:35 +02:00

remove some static contraints

This commit is contained in:
Nikolay Kim
2019-04-04 10:59:34 -07:00
parent dc7c3d37a1
commit bc834f6a03
15 changed files with 84 additions and 84 deletions

View File

@ -282,7 +282,7 @@ where
impl<T, U> Future for JsonBody<T, U>
where
T: Stream<Item = Bytes, Error = PayloadError>,
U: DeserializeOwned + 'static,
U: DeserializeOwned,
{
type Item = U;
type Error = JsonPayloadError;

View File

@ -70,7 +70,7 @@ impl WebsocketsRequest {
/// Set supported websocket protocols
pub fn protocols<U, V>(mut self, protos: U) -> Self
where
U: IntoIterator<Item = V> + 'static,
U: IntoIterator<Item = V>,
V: AsRef<str>,
{
let mut protos = protos