Skip to content

Commit 53dd4f5

Browse files
committed
fix warning in example wheel
1 parent b87abae commit 53dd4f5

File tree

1 file changed

+1
-1
lines changed
  • examples/path_or_file_like/src

1 file changed

+1
-1
lines changed

examples/path_or_file_like/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ impl FileOrFileLike {
1717
pub fn from_pyobject(path_or_file_like: PyObject) -> PyResult<FileOrFileLike> {
1818
Python::with_gil(|py| {
1919
// is a path
20-
if let Ok(string_ref) = path_or_file_like.downcast::<PyString>(py) {
20+
if let Ok(string_ref) = path_or_file_like.downcast_bound::<PyString>(py) {
2121
return Ok(FileOrFileLike::File(
2222
string_ref.to_string_lossy().to_string(),
2323
));

0 commit comments

Comments
 (0)