Skip to content

Commit 12a70b5

Browse files
author
kiran-garre
committed
chore: Run formatter
1 parent 058cc62 commit 12a70b5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

crates/chat-cli/src/cli/chat/cli/todos.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@ impl TodoSubcommand {
170170
}
171171
execute!(session.stderr, style::Print("\n"),)?;
172172
}
173-
174173
}
175174
},
176175
Err(_) => return Err(ChatError::Custom("Could not show to-do lists".into())),
@@ -184,9 +183,7 @@ impl TodoSubcommand {
184183
match os.database.delete_todo(&entries[index].id) {
185184
Ok(_) => {},
186185
Err(_) => {
187-
return Err(ChatError::Custom(
188-
"Could not delete the selected to-do list".into(),
189-
));
186+
return Err(ChatError::Custom("Could not delete the selected to-do list".into()));
190187
},
191188
};
192189
execute!(

crates/chat-cli/src/cli/chat/tools/todo.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,10 @@ impl TodoInput {
183183
if *last_completed == state.tasks.len() - 1 || state.completed.iter().all(|c| *c) {
184184
state.display_list(output)?;
185185
} else {
186-
let mut display_list = TodoState { tasks: completed_indices.iter().map(|i| state.tasks[*i].clone()).collect(), ..Default::default() };
186+
let mut display_list = TodoState {
187+
tasks: completed_indices.iter().map(|i| state.tasks[*i].clone()).collect(),
188+
..Default::default()
189+
};
187190
for _ in 0..completed_indices.len() {
188191
display_list.completed.push(true);
189192
}

0 commit comments

Comments
 (0)