apply new rustfmt.toml changes, fix some clippy lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -16,31 +16,43 @@ where
|
||||
S: TryStream<Ok = T, Error = E, Item = Result<T, E>> + Send + ?Sized,
|
||||
Self: TryStream + Send + Sized,
|
||||
{
|
||||
fn ready_and_then<U, F>(self, f: F) -> AndThen<Self, Ready<Result<U, E>>, impl FnMut(S::Ok) -> Ready<Result<U, E>>>
|
||||
fn ready_and_then<U, F>(
|
||||
self,
|
||||
f: F,
|
||||
) -> AndThen<Self, Ready<Result<U, E>>, impl FnMut(S::Ok) -> Ready<Result<U, E>>>
|
||||
where
|
||||
F: Fn(S::Ok) -> Result<U, E>;
|
||||
|
||||
fn ready_try_filter_map<F, U>(
|
||||
self, f: F,
|
||||
) -> TryFilterMap<Self, Ready<Result<Option<U>, E>>, impl FnMut(S::Ok) -> Ready<Result<Option<U>, E>>>
|
||||
self,
|
||||
f: F,
|
||||
) -> TryFilterMap<
|
||||
Self,
|
||||
Ready<Result<Option<U>, E>>,
|
||||
impl FnMut(S::Ok) -> Ready<Result<Option<U>, E>>,
|
||||
>
|
||||
where
|
||||
F: Fn(S::Ok) -> Result<Option<U>, E>;
|
||||
|
||||
fn ready_try_fold<U, F>(
|
||||
self, init: U, f: F,
|
||||
self,
|
||||
init: U,
|
||||
f: F,
|
||||
) -> TryFold<Self, Ready<Result<U, E>>, U, impl FnMut(U, S::Ok) -> Ready<Result<U, E>>>
|
||||
where
|
||||
F: Fn(U, S::Ok) -> Result<U, E>;
|
||||
|
||||
fn ready_try_fold_default<U, F>(
|
||||
self, f: F,
|
||||
self,
|
||||
f: F,
|
||||
) -> TryFold<Self, Ready<Result<U, E>>, U, impl FnMut(U, S::Ok) -> Ready<Result<U, E>>>
|
||||
where
|
||||
F: Fn(U, S::Ok) -> Result<U, E>,
|
||||
U: Default;
|
||||
|
||||
fn ready_try_for_each<F>(
|
||||
self, f: F,
|
||||
self,
|
||||
f: F,
|
||||
) -> TryForEach<Self, Ready<Result<(), E>>, impl FnMut(S::Ok) -> Ready<Result<(), E>>>
|
||||
where
|
||||
F: FnMut(S::Ok) -> Result<(), E>;
|
||||
@@ -52,7 +64,10 @@ where
|
||||
Self: TryStream + Send + Sized,
|
||||
{
|
||||
#[inline]
|
||||
fn ready_and_then<U, F>(self, f: F) -> AndThen<Self, Ready<Result<U, E>>, impl FnMut(S::Ok) -> Ready<Result<U, E>>>
|
||||
fn ready_and_then<U, F>(
|
||||
self,
|
||||
f: F,
|
||||
) -> AndThen<Self, Ready<Result<U, E>>, impl FnMut(S::Ok) -> Ready<Result<U, E>>>
|
||||
where
|
||||
F: Fn(S::Ok) -> Result<U, E>,
|
||||
{
|
||||
@@ -60,8 +75,13 @@ where
|
||||
}
|
||||
|
||||
fn ready_try_filter_map<F, U>(
|
||||
self, f: F,
|
||||
) -> TryFilterMap<Self, Ready<Result<Option<U>, E>>, impl FnMut(S::Ok) -> Ready<Result<Option<U>, E>>>
|
||||
self,
|
||||
f: F,
|
||||
) -> TryFilterMap<
|
||||
Self,
|
||||
Ready<Result<Option<U>, E>>,
|
||||
impl FnMut(S::Ok) -> Ready<Result<Option<U>, E>>,
|
||||
>
|
||||
where
|
||||
F: Fn(S::Ok) -> Result<Option<U>, E>,
|
||||
{
|
||||
@@ -70,7 +90,9 @@ where
|
||||
|
||||
#[inline]
|
||||
fn ready_try_fold<U, F>(
|
||||
self, init: U, f: F,
|
||||
self,
|
||||
init: U,
|
||||
f: F,
|
||||
) -> TryFold<Self, Ready<Result<U, E>>, U, impl FnMut(U, S::Ok) -> Ready<Result<U, E>>>
|
||||
where
|
||||
F: Fn(U, S::Ok) -> Result<U, E>,
|
||||
@@ -80,7 +102,8 @@ where
|
||||
|
||||
#[inline]
|
||||
fn ready_try_fold_default<U, F>(
|
||||
self, f: F,
|
||||
self,
|
||||
f: F,
|
||||
) -> TryFold<Self, Ready<Result<U, E>>, U, impl FnMut(U, S::Ok) -> Ready<Result<U, E>>>
|
||||
where
|
||||
F: Fn(U, S::Ok) -> Result<U, E>,
|
||||
@@ -91,7 +114,8 @@ where
|
||||
|
||||
#[inline]
|
||||
fn ready_try_for_each<F>(
|
||||
self, mut f: F,
|
||||
self,
|
||||
mut f: F,
|
||||
) -> TryForEach<Self, Ready<Result<(), E>>, impl FnMut(S::Ok) -> Ready<Result<(), E>>>
|
||||
where
|
||||
F: FnMut(S::Ok) -> Result<(), E>,
|
||||
|
||||
Reference in New Issue
Block a user