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:
@ -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;
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user