Python - RustFmt

This commit is contained in:
Anthony MOI
2020-02-18 14:31:56 -05:00
parent cdd8f49120
commit f263d7651f
6 changed files with 27 additions and 26 deletions

View File

@ -23,6 +23,7 @@ impl std::error::Error for PyError {}
pub struct ToPyResult<T>(pub Result<T>);
impl<T> std::convert::Into<PyResult<T>> for ToPyResult<T> {
fn into(self) -> PyResult<T> {
self.0.map_err(|e| { exceptions::Exception::py_err(format!("{}", e)) })
self.0
.map_err(|e| exceptions::Exception::py_err(format!("{}", e)))
}
}