Skip to content

Commit 508abec

Browse files
committed
Remove redundant bind call
Signed-off-by: Facundo Tuesca <[email protected]>
1 parent 73b8541 commit 508abec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/rust/src/declarative_asn1/encode.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// for complete details.
44

55
use asn1::{SimpleAsn1Writable, Writer};
6-
use pyo3::types::{PyAnyMethods, PyStringMethods};
6+
use pyo3::types::PyAnyMethods;
77

88
use crate::declarative_asn1::types::{AnnotatedType, AnnotatedTypeObject, PrintableString, Type};
99

@@ -80,8 +80,7 @@ impl asn1::Asn1Writable for AnnotatedTypeObject<'_> {
8080
let inner_str = val
8181
.get()
8282
.inner
83-
.bind(py)
84-
.to_cow()
83+
.to_cow(py)
8584
.map_err(|_| asn1::WriteError::AllocationError)?;
8685
let printable_string: asn1::PrintableString<'_> =
8786
asn1::PrintableString::new(&inner_str)

0 commit comments

Comments
 (0)