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 get the same issue, the todo_app.rs works when you clone this repo locally and run it, but if you make a fresh project and paste it in as main.rs with the latest rustofi v0.2.2 and other dependencies you get the same error.
I completely accidentally found the fix while trawling through some forums. This will get you compiling:
// change this:
pub fn toggle_todo(t: &mut TodoItem) -> CallbackResult {
// to this
pub fn toggle_todo<'r>(t: &'r TodoItem) -> RustofiResult {
// get rid of the 3rd arg in AppPage
AppPage::<TodoItem>::new(
todos,
Box::new(TodoApp::toggle_todo)
)
Fixing those brings more errors, but they seem easy to overcome, just returning the right values etc. I didn't want to fix the whole file :).
hopefully from here you can use the todo as a good example of how to use this crate.
Still not sure about integrating with rofi properly, but I have an executable I can call and that is good enough atm!
I made some progress today and I have finally understood what is going on with the AppPage constructor!
The master branch is at version 0.3.0 but the latest crate is 0.2.2. This is why the todo_app works in the repo but not with the crate. I think for now I will just use a locally compiled crate to have 0.3.0 - I need the custom actions for my project.
Got the following error while trying to compile:
The text was updated successfully, but these errors were encountered: