@@ -191,23 +191,23 @@ impl TemporalMode {
191191
192192 pub fn datetime_json_key < ' py > ( self , datetime : & Bound < ' _ , PyDateTime > ) -> PyResult < Cow < ' py , str > > {
193193 match self {
194- Self :: Iso8601 => Ok ( datetime_to_string ( datetime) ?. to_string ( ) . into ( ) ) ,
194+ Self :: Iso8601 => Ok ( datetime_to_string ( datetime) ?. into ( ) ) ,
195195 Self :: Seconds => Ok ( datetime_to_seconds ( datetime) ?. to_string ( ) . into ( ) ) ,
196196 Self :: Milliseconds => Ok ( datetime_to_milliseconds ( datetime) ?. to_string ( ) . into ( ) ) ,
197197 }
198198 }
199199
200200 pub fn date_json_key < ' py > ( self , date : & Bound < ' _ , PyDate > ) -> PyResult < Cow < ' py , str > > {
201201 match self {
202- Self :: Iso8601 => Ok ( date_to_string ( date) ?. to_string ( ) . into ( ) ) ,
202+ Self :: Iso8601 => Ok ( date_to_string ( date) ?. into ( ) ) ,
203203 Self :: Seconds => Ok ( date_to_seconds ( date) ?. to_string ( ) . into ( ) ) ,
204204 Self :: Milliseconds => Ok ( date_to_milliseconds ( date) ?. to_string ( ) . into ( ) ) ,
205205 }
206206 }
207207
208208 pub fn time_json_key < ' py > ( self , time : & Bound < ' _ , PyTime > ) -> PyResult < Cow < ' py , str > > {
209209 match self {
210- Self :: Iso8601 => Ok ( time_to_string ( time) ?. to_string ( ) . into ( ) ) ,
210+ Self :: Iso8601 => Ok ( time_to_string ( time) ?. into ( ) ) ,
211211 Self :: Seconds => Ok ( time_to_seconds ( time) ?. to_string ( ) . into ( ) ) ,
212212 Self :: Milliseconds => Ok ( time_to_milliseconds ( time) ?. to_string ( ) . into ( ) ) ,
213213 }
0 commit comments