Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Nov 19, 2024
1 parent 196ad26 commit 67b11f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,7 @@ impl SignedData {
}

#[getter]
fn certificates<'p>(
&self,
py: pyo3::Python<'p>,
) -> pyo3::PyResult<pyo3::PyObject> {
fn certificates<'p>(&self, py: pyo3::Python<'p>) -> pyo3::PyResult<pyo3::PyObject> {
let py_certs = pyo3::types::PySet::empty(py)?;
let certs = match self.raw.borrow_dependent().certificates.clone() {
Some(certs) => certs,
Expand Down Expand Up @@ -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())?;
}
}

Expand Down Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion rust/src/name.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))?)
}
Expand Down

0 comments on commit 67b11f7

Please sign in to comment.