File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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( )
You can’t perform that action at this time.
0 commit comments