@@ -6,7 +6,7 @@ use std::{
66
77use dbn:: {
88 encode:: { csv, json, DbnEncodable , EncodeRecordRef } ,
9- rtype, rtype_ts_out_dispatch , RecordHeader , RecordRef , Schema ,
9+ rtype, rtype_dispatch , RecordHeader , RecordRef , Schema ,
1010} ;
1111
1212use crate :: cfile:: CFileRef ;
@@ -80,7 +80,7 @@ pub unsafe extern "C" fn s_serialize_record_header(
8080 . use_pretty_ts ( options. pretty_ts )
8181 . build ( )
8282 . and_then ( |mut encoder| {
83- rtype_ts_out_dispatch ! ( record, options. ts_out, serialize_csv_header, & mut encoder)
83+ rtype_dispatch ! ( record, ts_out : options. ts_out, serialize_csv_header( & mut encoder) )
8484 } ) ,
8585 }
8686 // flatten
@@ -126,7 +126,7 @@ pub unsafe extern "C" fn f_serialize_record_header(
126126 . use_pretty_ts ( options. pretty_ts )
127127 . build ( )
128128 . and_then ( |mut encoder| {
129- rtype_ts_out_dispatch ! ( record, options. ts_out, serialize_csv_header, & mut encoder)
129+ rtype_dispatch ! ( record, ts_out : options. ts_out, serialize_csv_header( & mut encoder) )
130130 } ) ,
131131 } ;
132132 res. map ( |_| cfile. bytes_written ( ) as i32 )
0 commit comments