Skip to content

Commit 558ea2b

Browse files
authored
Merge branch 'main' into optimize-decode-key-intern-cache
2 parents fa4ee74 + 4ea29bb commit 558ea2b

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

src/lib.rs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)