Skip to content

Commit

Permalink
clippy fix ryo3-tokio
Browse files Browse the repository at this point in the history
  • Loading branch information
jessekrubin committed Feb 20, 2025
1 parent 1833bc0 commit 3e26082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/ryo3-tokio/src/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ pub fn read_async(py: Python<'_>, pth: PathBuf) -> PyResult<Bound<'_, PyAny>> {
tokio::fs::read(pth)
.await
.map(ryo3_bytes::PyBytes::from)
.map_err(|e| PyErr::from(e))
.map_err(PyErr::from)
})
}

Expand All @@ -24,6 +24,6 @@ pub fn write_async(py: Python<'_>, fspath: PathBuf, b: PyBytes) -> PyResult<Boun
tokio::fs::write(fspath, b)
.await
.map(|()| len)
.map_err(|e| PyErr::from(e))
.map_err(PyErr::from)
})
}

0 comments on commit 3e26082

Please sign in to comment.