mirror of
https://github.com/tower-rs/tower.git
synced 2025-10-02 15:25:11 +00:00
util: Unecessary bound in ServiceExt::call_all (#651)
This commit is contained in:
parent
04f0bd0cc3
commit
d8c73fcb33
@ -30,7 +30,6 @@ pub(crate) trait Drive<F: Future> {
|
|||||||
impl<Svc, S, Q> CallAll<Svc, S, Q>
|
impl<Svc, S, Q> CallAll<Svc, S, Q>
|
||||||
where
|
where
|
||||||
Svc: Service<S::Item>,
|
Svc: Service<S::Item>,
|
||||||
Svc::Error: Into<crate::BoxError>,
|
|
||||||
S: Stream,
|
S: Stream,
|
||||||
Q: Drive<Svc::Future>,
|
Q: Drive<Svc::Future>,
|
||||||
{
|
{
|
||||||
|
@ -98,7 +98,6 @@ pin_project! {
|
|||||||
impl<Svc, S> CallAll<Svc, S>
|
impl<Svc, S> CallAll<Svc, S>
|
||||||
where
|
where
|
||||||
Svc: Service<S::Item>,
|
Svc: Service<S::Item>,
|
||||||
Svc::Error: Into<crate::BoxError>,
|
|
||||||
S: Stream,
|
S: Stream,
|
||||||
{
|
{
|
||||||
/// Create new [`CallAll`] combinator.
|
/// Create new [`CallAll`] combinator.
|
||||||
|
@ -35,7 +35,6 @@ pin_project! {
|
|||||||
impl<Svc, S> CallAllUnordered<Svc, S>
|
impl<Svc, S> CallAllUnordered<Svc, S>
|
||||||
where
|
where
|
||||||
Svc: Service<S::Item>,
|
Svc: Service<S::Item>,
|
||||||
Svc::Error: Into<crate::BoxError>,
|
|
||||||
S: Stream,
|
S: Stream,
|
||||||
{
|
{
|
||||||
/// Create new [`CallAllUnordered`] combinator.
|
/// Create new [`CallAllUnordered`] combinator.
|
||||||
|
@ -112,7 +112,6 @@ pub trait ServiceExt<Request>: tower_service::Service<Request> {
|
|||||||
fn call_all<S>(self, reqs: S) -> CallAll<Self, S>
|
fn call_all<S>(self, reqs: S) -> CallAll<Self, S>
|
||||||
where
|
where
|
||||||
Self: Sized,
|
Self: Sized,
|
||||||
Self::Error: Into<crate::BoxError>,
|
|
||||||
S: futures_core::Stream<Item = Request>,
|
S: futures_core::Stream<Item = Request>,
|
||||||
{
|
{
|
||||||
CallAll::new(self, reqs)
|
CallAll::new(self, reqs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user