Closed
Description
error[E0277]: the trait bound `pyo3::PyErr: std::convert::From<std::io::Error>` is not satisfied
--> src/lib.rs:11:17
|
11 | let mut f = fs::File::open(path)?;
| ^^^^^^^^^^^^^^^^^^^^^ the trait `std::convert::From<std::io::Error>` is not implemented for `pyo3::PyErr`
|
= help: the following implementations were found:
<pyo3::PyErr as std::convert::From<pyo3::PyDowncastError<'p>>>
= note: required by `std::convert::From::from`
This is annoying, makes it hard to use try!
or ?
. We could implement From
trait for some of the Rust error types like std::io::Error
.
Metadata
Metadata
Assignees
Labels
No labels