Ribir
Ribir copied to clipboard
Example TODOS does not compile when build from tutorial
Problem I am trying to follow the tutorial by writing the example step by step and using
ribir = {git = "https://github.com/RibirX/Ribir.git", features = ["material", "widgets"]}
in cargo.toml
Coming to the point where function task_lists
is introduced with emphasize on
Did you notice the line about state splitting?
let task = this.split_writer(
move |todos| todos.get_task(id).unwrap(),
move |todos| todos.get_task_mut(id).unwrap(),
);
I get the error message that split_writer
should have only one argument.
How do have to alter the function call to get it right?
Environment:
- Ribir version: newest? s.a.
- Rust version: 1.79 stable
- OS, if relevant (don't know):] win 10 H22