()
| 15 | |
| 16 | impl TodoApp { |
| 17 | pub fn new() -> Self { |
| 18 | let mut app = Self { |
| 19 | todos: Arc::new(Mutex::new(Vec::new())), |
| 20 | input: String::new(), |
| 21 | view: None, |
| 22 | }; |
| 23 | app.rebuild_ui(); |
| 24 | app |
| 25 | } |
| 26 | |
| 27 | fn rebuild_ui(&mut self) { |
| 28 | let todos = self.todos.clone(); |
nothing calls this directly
no test coverage detected