@@ -88,7 +88,6 @@ serialization_mode! {
88
88
TimedeltaMode ,
89
89
"ser_json_timedelta" ,
90
90
Iso8601 => "iso8601" ,
91
- Float => "float" ,
92
91
SecondsFloat => "seconds_float" ,
93
92
MillisecondsFloat => "milliseconds_float"
94
93
}
@@ -116,7 +115,7 @@ impl TimedeltaMode {
116
115
let d = either_delta. to_duration ( ) ?;
117
116
Ok ( d. to_string ( ) . into_py ( py) )
118
117
}
119
- Self :: Float | Self :: SecondsFloat => {
118
+ Self :: SecondsFloat => {
120
119
// convert to int via a py timedelta not duration since we know this this case the input would have
121
120
// been a py timedelta
122
121
let seconds: f64 = either_delta. total_seconds ( ) ?;
@@ -138,7 +137,7 @@ impl TimedeltaMode {
138
137
let d = either_delta. to_duration ( ) ?;
139
138
Ok ( d. to_string ( ) . into ( ) )
140
139
}
141
- Self :: Float | Self :: SecondsFloat => {
140
+ Self :: SecondsFloat => {
142
141
let seconds: f64 = either_delta. total_seconds ( ) ?;
143
142
Ok ( seconds. to_string ( ) . into ( ) )
144
143
}
@@ -160,7 +159,7 @@ impl TimedeltaMode {
160
159
let d = either_delta. to_duration ( ) . map_err ( py_err_se_err) ?;
161
160
serializer. serialize_str ( & d. to_string ( ) )
162
161
}
163
- Self :: Float | Self :: SecondsFloat => {
162
+ Self :: SecondsFloat => {
164
163
let seconds: f64 = either_delta. total_seconds ( ) . map_err ( py_err_se_err) ?;
165
164
serializer. serialize_f64 ( seconds)
166
165
}
0 commit comments