File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
crates/chat-cli/src/cli/chat Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff 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 ! (
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments