File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -179,10 +179,7 @@ fn collect_and_sort_map_entries<'py>(
179179// buffer; non-ASCII falls through to the standard decoder.
180180#[ cfg( CPython ) ]
181181#[ inline]
182- fn pystring_from_bytes_fast < ' py > (
183- py : Python < ' py > ,
184- bytes : & [ u8 ] ,
185- ) -> PyResult < Bound < ' py , PyString > > {
182+ fn pystring_from_bytes_fast < ' py > ( py : Python < ' py > , bytes : & [ u8 ] ) -> PyResult < Bound < ' py , PyString > > {
186183 if !bytes. is_ascii ( ) {
187184 return PyString :: from_bytes ( py, bytes) ;
188185 }
@@ -203,10 +200,7 @@ fn pystring_from_bytes_fast<'py>(
203200
204201#[ cfg( not( CPython ) ) ]
205202#[ inline]
206- fn pystring_from_bytes_fast < ' py > (
207- py : Python < ' py > ,
208- bytes : & [ u8 ] ,
209- ) -> PyResult < Bound < ' py , PyString > > {
203+ fn pystring_from_bytes_fast < ' py > ( py : Python < ' py > , bytes : & [ u8 ] ) -> PyResult < Bound < ' py , PyString > > {
210204 PyString :: from_bytes ( py, bytes)
211205}
212206
You can’t perform that action at this time.
0 commit comments