Skip to content

Commit 7c0b5b5

Browse files
authored
Remove weird self-import (#10556)
1 parent 8d7c60d commit 7c0b5b5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/rust/src/x509/ocsp.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ use once_cell::sync::Lazy;
1010

1111
use crate::backend::hashes::Hash;
1212
use crate::error::CryptographyResult;
13-
use crate::x509;
1413
use crate::x509::certificate::Certificate;
1514

1615
pub(crate) static ALGORITHM_PARAMETERS_TO_HASH: Lazy<
@@ -93,7 +92,7 @@ pub(crate) fn certid_new<'p>(
9392
)?;
9493

9594
Ok(CertID {
96-
hash_algorithm: x509::ocsp::HASH_NAME_TO_ALGORITHM_IDENTIFIERS[hash_algorithm
95+
hash_algorithm: HASH_NAME_TO_ALGORITHM_IDENTIFIERS[hash_algorithm
9796
.getattr(pyo3::intern!(py, "name"))?
9897
.extract::<&str>()?]
9998
.clone(),
@@ -111,7 +110,7 @@ pub(crate) fn certid_new_from_hash<'p>(
111110
hash_algorithm: &'p pyo3::PyAny,
112111
) -> CryptographyResult<CertID<'p>> {
113112
Ok(CertID {
114-
hash_algorithm: x509::ocsp::HASH_NAME_TO_ALGORITHM_IDENTIFIERS[hash_algorithm
113+
hash_algorithm: HASH_NAME_TO_ALGORITHM_IDENTIFIERS[hash_algorithm
115114
.getattr(pyo3::intern!(py, "name"))?
116115
.extract::<&str>()?]
117116
.clone(),

0 commit comments

Comments
 (0)