Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkaMaul committed Oct 1, 2024
1 parent 1dfc598 commit c347055
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ impl TimeStampReq {

#[getter]
fn message_imprint(&self) -> PyResult<PyMessageImprint> {
// fn message_imprint<'p>(&self, py: pyo3::Python<'p>) -> PyResult<PyMessageImprint> {
Ok(PyMessageImprint {
contents: OwnedMessageImprint::try_new(Arc::clone(&self.raw), |v| {
Ok::<_, ()>(v.borrow_dependent().message_imprint.clone())
Expand All @@ -80,6 +81,7 @@ impl TimeStampReq {
self_cell::self_cell!(
struct OwnedMessageImprint {
owner: Arc<OwnedTimeStamReq>,
// owner: pyo3::Py<pyo3::types::PyBytes>,
#[covariant]
dependent: RawMessageImprint,
}
Expand Down
4 changes: 2 additions & 2 deletions rust/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ pub(crate) fn datetime_to_py_utc<'p>(
py: pyo3::Python<'p>,
dt: &asn1::DateTime,
) -> pyo3::PyResult<pyo3::Bound<'p, pyo3::PyAny>> {
let timezone = types::DATETIME_TIMEZONE_UTC.get(py)?;
types::DATETIME_DATETIME.get(py)?.call1((
let timezone = DATETIME_TIMEZONE_UTC.get(py)?;
DATETIME_DATETIME.get(py)?.call1((
dt.year(),
dt.month(),
dt.day(),
Expand Down

0 comments on commit c347055

Please sign in to comment.