@@ -35,7 +35,7 @@ impl VTab for ExcelVTab {
3535 let mut workbook = open_workbook_auto ( path) ?;
3636 let range = workbook
3737 . worksheet_range ( & sheet)
38- . unwrap_or_else ( || panic ! ( "Can't find sheet: {} ?" , sheet ) ) ?;
38+ . unwrap_or_else ( || panic ! ( "Can't find sheet: {sheet } ?" ) ) ?;
3939 let _column_count = range. get_size ( ) . 1 ;
4040 let mut rows = range. rows ( ) ;
4141 let header = rows. next ( ) . unwrap ( ) ;
@@ -62,39 +62,39 @@ impl VTab for ExcelVTab {
6262 bind. add_result_column (
6363 header[ idx]
6464 . get_string ( )
65- . unwrap_or_else ( || panic ! ( "idx {} header empty?" , idx ) ) ,
65+ . unwrap_or_else ( || panic ! ( "idx {idx } header empty?" ) ) ,
6666 LogicalTypeHandle :: from ( LogicalTypeId :: Varchar ) ,
6767 ) ;
6868 }
6969 DataType :: Float ( _) => {
7070 bind. add_result_column (
7171 header[ idx]
7272 . get_string ( )
73- . unwrap_or_else ( || panic ! ( "idx {} header empty?" , idx ) ) ,
73+ . unwrap_or_else ( || panic ! ( "idx {idx } header empty?" ) ) ,
7474 LogicalTypeHandle :: from ( LogicalTypeId :: Double ) ,
7575 ) ;
7676 }
7777 DataType :: Int ( _) => {
7878 bind. add_result_column (
7979 header[ idx]
8080 . get_string ( )
81- . unwrap_or_else ( || panic ! ( "idx {} header empty?" , idx ) ) ,
81+ . unwrap_or_else ( || panic ! ( "idx {idx } header empty?" ) ) ,
8282 LogicalTypeHandle :: from ( LogicalTypeId :: Bigint ) ,
8383 ) ;
8484 }
8585 DataType :: Bool ( _) => {
8686 bind. add_result_column (
8787 header[ idx]
8888 . get_string ( )
89- . unwrap_or_else ( || panic ! ( "idx {} header empty?" , idx ) ) ,
89+ . unwrap_or_else ( || panic ! ( "idx {idx } header empty?" ) ) ,
9090 LogicalTypeHandle :: from ( LogicalTypeId :: Boolean ) ,
9191 ) ;
9292 }
9393 DataType :: DateTime ( _) => {
9494 bind. add_result_column (
9595 header[ idx]
9696 . get_string ( )
97- . unwrap_or_else ( || panic ! ( "idx {} header empty?" , idx ) ) ,
97+ . unwrap_or_else ( || panic ! ( "idx {idx } header empty?" ) ) ,
9898 LogicalTypeHandle :: from ( LogicalTypeId :: Date ) ,
9999 ) ;
100100 }
0 commit comments