You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let submit_action = Action::new(
|(details, set_current_view, set_post_cid): &(
String,
WriteSignal<View>,
WriteSignal<String>,
)| {
let details = details.clone();
let set_current_view = set_current_view.clone();
let set_post_cid = set_post_cid.clone();
async move {
get_cid_post(details, set_current_view, set_post_cid).await;
}
},
);
How can I fix the error:
within `{async block@src/components/schelling_game/department_funding/create_department_fund.rs:77:13: 77:23}`, the trait `std::marker::Send` is not implemented for `*mut u8`, which is required by `{async block@src/components/schelling_game/department_funding/create_department_fund.rs:77:13: 77:23}: std::marker::Send`rustc[Click for full compiler diagnostic](rust-analyzer-diagnostics-view:/diagnostic%20message%20[0]?0#file:///home/amiya/Documents/workspace/shivarthu/working_directory/shivarthu-client/src/components/schelling_game/department_funding/create_department_fund.rs)
ipfs_request.rs(73, 10): future is not `Send` as this value is used across an await
action.rs(655, 34): required by a bound in `leptos::prelude::Action::<I, O>::new```
Its give another error, type annotation error:
```error[E0283]: type annotations needed for leptos::prelude::Action<(std::string::String, leptos::prelude::WriteSignal<common_imp::View>, leptos::prelude::WriteSignal<std::string::String>), (), _>
--> src/components/schelling_game/department_funding/create_department_fund.rs:67:9
|
67 | let submit_action = Action::new_unsync(
| _^^^^^^^^^^^^^-
68 | | |(details, set_current_view, set_post_cid): &(
69 | | String,
70 | | WriteSignal,
... |
80 | | },
81 | | );
| |- type must be known at this point
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How can I fix the error:
Beta Was this translation helpful? Give feedback.
All reactions