@@ -238,8 +238,7 @@ fn managed_db_connection_ids(api: &Api) -> Result<Vec<String>, ApiError> {
238238 let conn_ids: Result < Vec < Option < String > > , ApiError > = ids
239239 . par_iter ( )
240240 . map ( |id| {
241- Ok ( none_if_404 ( databases:: get_database ( api, id) ) ?
242- . map ( |db| db. default_connection_id ) )
241+ Ok ( none_if_404 ( databases:: get_database ( api, id) ) ?. map ( |db| db. default_connection_id ) )
243242 } )
244243 . collect ( ) ;
245244 Ok ( conn_ids?. into_iter ( ) . flatten ( ) . collect ( ) )
@@ -522,20 +521,17 @@ pub fn list(
522521 // (databases::list_database_ids) so nothing fights for the line.
523522 let spinner = crate :: util:: spinner ( "Loading indexes…" ) ;
524523 let result = match ( connection_id, schema, table) {
525- ( Some ( cid) , Some ( sch) , Some ( tbl) ) => {
526- list_one_table ( & api, cid, sch, tbl) . map ( |indexes| {
527- let rows: Vec < IndexRow > = indexes
528- . into_iter ( )
529- . map ( |i| IndexRow {
530- inner : i,
531- table : None ,
532- } )
533- . collect ( ) ;
534- ( rows, false )
535- } )
536- }
537- _ => collect_connection_wide ( & api, connection_id, schema, table)
538- . map ( |rows| ( rows, true ) ) ,
524+ ( Some ( cid) , Some ( sch) , Some ( tbl) ) => list_one_table ( & api, cid, sch, tbl) . map ( |indexes| {
525+ let rows: Vec < IndexRow > = indexes
526+ . into_iter ( )
527+ . map ( |i| IndexRow {
528+ inner : i,
529+ table : None ,
530+ } )
531+ . collect ( ) ;
532+ ( rows, false )
533+ } ) ,
534+ _ => collect_connection_wide ( & api, connection_id, schema, table) . map ( |rows| ( rows, true ) ) ,
539535 } ;
540536 spinner. finish_and_clear ( ) ;
541537 let ( rows, multi_table) = result. unwrap_or_else ( |e| e. exit ( ) ) ;
0 commit comments