mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
clippy: simplify Box::pin() call. (#718)
This commit is contained in:
parent
2e63bb1f50
commit
cfd5c98f97
2 changed files with 2 additions and 2 deletions
|
@ -286,7 +286,7 @@ where
|
|||
let pending = create_rw_signal(cx, false);
|
||||
let action_fn = Rc::new(move |input: &I| {
|
||||
let fut = action_fn(input);
|
||||
Box::pin(async move { fut.await }) as Pin<Box<dyn Future<Output = O>>>
|
||||
Box::pin(fut) as Pin<Box<dyn Future<Output = O>>>
|
||||
});
|
||||
|
||||
Action(store_value(
|
||||
|
|
|
@ -297,7 +297,7 @@ where
|
|||
let submissions = create_rw_signal(cx, Vec::new());
|
||||
let action_fn = Rc::new(move |input: &I| {
|
||||
let fut = action_fn(input);
|
||||
Box::pin(async move { fut.await }) as Pin<Box<dyn Future<Output = O>>>
|
||||
Box::pin(fut) as Pin<Box<dyn Future<Output = O>>>
|
||||
});
|
||||
|
||||
MultiAction(store_value(
|
||||
|
|
Loading…
Reference in a new issue