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
--> src/add_client.rs:74:26
|
73 | fn view(&self) -> Html{
| ----- this data with an anonymous lifetime `'_`...
74 | let Self{ link, client, ..} = self;
| ^^^^^^ ...is captured here...
75 | / html!{76 | | <>
77 | | <div class="names">
78 | | <input
... |
107 | | </>
108 | | }
| |_________- ...and is required to live as long as `'static` here
Environment:
Yew version: v0.18
Rust version: 1.52.1
Build tool, if relevant: cargo check
OS, if relevant: MacOS
I fixed this by changing
&client.last_name -> client.last_name.clone()
&client.first_name -> client.first_name.clone()
&client.description -> client.description.clone()
I'm not sure if this is the solution, but if it is I'd be happy to make a pull request fixing the problem.
Thank you for great library.
The text was updated successfully, but these errors were encountered:
When building the crm example I get this error.
Environment:
I fixed this by changing
&client.last_name -> client.last_name.clone()
&client.first_name -> client.first_name.clone()
&client.description -> client.description.clone()
I'm not sure if this is the solution, but if it is I'd be happy to make a pull request fixing the problem.
Thank you for great library.
The text was updated successfully, but these errors were encountered: