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
I want to include a reference to the app inside my structure.
This will allow my instance to refer to the window and time of the application.
This will require me to assign a lifetime of the reference.
I think that lifetime should be static based on my reading of the lib.rs file.
error[E0308]: mismatched types
--> src/main.rs:256:17
|
256 | nannou::app(model).update(update).run();
| ----------- ^^^^^ one type is more general than the other
| |
| arguments to this function are incorrect
|
= note: expected fn pointer for<'a> fn(&'a nannou::App) -> _
found fn item fn(&'static nannou::App) -> Model {model}
I've actually not encounter this error before but I get the gist.
It feels like I'm either one sprinkle of syntactic sugar away from compiling or my approach is simply wrong.
May I have some guidance?
Thanks 👍
Pix ❣️
The text was updated successfully, but these errors were encountered:
I want to include a reference to the app inside my structure.
This will allow my instance to refer to the window and time of the application.
This will require me to assign a lifetime of the reference.
I think that lifetime should be static based on my reading of the lib.rs file.
However
I've actually not encounter this error before but I get the gist.
It feels like I'm either one sprinkle of syntactic sugar away from compiling or my approach is simply wrong.
May I have some guidance?
Thanks 👍
Pix ❣️
The text was updated successfully, but these errors were encountered: