Ribir icon indicating copy to clipboard operation
Ribir copied to clipboard

Example TODOS does not compile when build from tutorial

Open Maikel1963 opened this issue 8 months ago • 1 comments

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

Maikel1963 avatar Jun 27 '24 11:06 Maikel1963