diff --git a/src/pybacked.rs b/src/pybacked.rs index b88781f35e6..bd29c830e65 100644 --- a/src/pybacked.rs +++ b/src/pybacked.rs @@ -44,7 +44,6 @@ impl TryFrom> for PyBackedStr { let bytes = py_string.encode_utf8()?; let b = bytes.as_bytes(); let data = NonNull::from(b); - let length = b.len(); Ok(Self { storage: bytes.into_any().unbind(), data,