Skip to content

Commit b8f61a5

Browse files
authored
revert stylistic change now that rust coverage handles it
this was written this way to work around rust-lang/rust#84180, which is fixed
1 parent 79416cd commit b8f61a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rust/src/asn1.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ fn encode_tls_feature(py: pyo3::Python<'_>, ext: &pyo3::PyAny) -> pyo3::PyResult
5151

5252
#[pyo3::prelude::pyfunction]
5353
fn parse_tls_feature(py: pyo3::Python<'_>, data: &[u8]) -> Result<pyo3::PyObject, PyAsn1Error> {
54-
let x509_mod = py.import("cryptography.x509.extensions")?;
55-
let tls_feature_type_to_enum = x509_mod.getattr("_TLS_FEATURE_TYPE_TO_ENUM")?;
54+
let tls_feature_type_to_enum = py
55+
.import("cryptography.x509.extensions")?
56+
.getattr("_TLS_FEATURE_TYPE_TO_ENUM")?;
5657

5758
let features = pyo3::types::PyList::empty(py);
5859
for el in asn1::parse_single::<asn1::SequenceOf<u64>>(data)? {

0 commit comments

Comments
 (0)