diff --git a/rust/src/lib.rs b/rust/src/lib.rs index e0222ce..cf3f98f 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -357,10 +357,7 @@ impl SignedData { } #[getter] - fn certificates<'p>( - &self, - py: pyo3::Python<'p>, - ) -> pyo3::PyResult { + fn certificates<'p>(&self, py: pyo3::Python<'p>) -> pyo3::PyResult { let py_certs = pyo3::types::PySet::empty(py)?; let certs = match self.raw.borrow_dependent().certificates.clone() { Some(certs) => certs, @@ -402,9 +399,7 @@ impl SignedData { }) .unwrap(), }; - py_set.add( - py_signer_info.into_pyobject(py)?.unbind() - )?; + py_set.add(py_signer_info.into_pyobject(py)?.unbind())?; } } @@ -755,8 +750,7 @@ mod _rust { #[pymodule_export] use super::{ - Accuracy, PyMessageImprint, PyTSTInfo, SignedData, SignerInfo, TimeStampReq, - TimeStampResp, + Accuracy, PyMessageImprint, PyTSTInfo, SignedData, SignerInfo, TimeStampReq, TimeStampResp, }; #[pyo3::pymodule] diff --git a/rust/src/name.rs b/rust/src/name.rs index 4e54c80..0ef1066 100644 --- a/rust/src/name.rs +++ b/rust/src/name.rs @@ -32,7 +32,7 @@ fn parse_name_attribute<'p>( } }; let kwargs = [(pyo3::intern!(py, "_validate"), false)].into_py_dict(py)?; - //.map_err(|_| pyo3::exceptions::PyValueError::new_err("Unable to parse argument"))?; + //.map_err(|_| pyo3::exceptions::PyValueError::new_err("Unable to parse argument"))?; let o = crate::util::NAME_ATTRIBUTE.get(py)?; Ok(o.call((oid, py_data, py_tag), Some(&kwargs))?) }