(content: &str, status: TodoStatus)
| 15 | |
| 16 | impl TodoItem { |
| 17 | pub fn new(content: &str, status: TodoStatus) -> Self { |
| 18 | Self { |
| 19 | content: content.to_string(), |
| 20 | status, |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | pub fn render(&self, frame: &mut Frame, area: Rect) { |
| 25 | let (icon, color) = match &self.status { |
nothing calls this directly
no outgoing calls
no test coverage detected