Skip to content

Commit 42b7471

Browse files
committed
Fix lifetimes
1 parent 5d333a5 commit 42b7471

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

icechunk-python/src/pickle.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ macro_rules! impl_pickle {
33
($struct_name:ident) => {
44
#[pymethods]
55
impl $struct_name {
6-
pub fn __setstate__<'py>(
6+
pub fn __setstate__(
77
&mut self,
8-
state: &pyo3::Bound<'py, pyo3::types::PyBytes>,
8+
state: &pyo3::Bound<'_, pyo3::types::PyBytes>,
99
) -> pyo3::PyResult<()> {
1010
*self = serde_json::from_slice(state.as_bytes()).map_err(|e| {
11-
crate::errors::PyIcechunkStoreError::PickleError(format!(
11+
$crate::errors::PyIcechunkStoreError::PickleError(format!(
1212
"Failed to unpickle {}: {}",
1313
stringify!($struct_name),
1414
e.to_string()
@@ -22,7 +22,7 @@ macro_rules! impl_pickle {
2222
py: pyo3::Python<'py>,
2323
) -> pyo3::PyResult<pyo3::Bound<'py, pyo3::types::PyBytes>> {
2424
let state = serde_json::to_vec(&self).map_err(|e| {
25-
crate::errors::PyIcechunkStoreError::PickleError(format!(
25+
$crate::errors::PyIcechunkStoreError::PickleError(format!(
2626
"Failed to pickle {}: {}",
2727
stringify!($struct_name),
2828
e.to_string()

0 commit comments

Comments
 (0)