Skip to content

Commit bb09ae4

Browse files
committed
fix clippy warning
1 parent d67c178 commit bb09ae4

File tree

1 file changed

+1
-2
lines changed
  • crates/chia_py_streamable_macro/src

1 file changed

+1
-2
lines changed

crates/chia_py_streamable_macro/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,6 @@ pub fn py_streamable_macro(input: proc_macro::TokenStream) -> proc_macro::TokenS
348348

349349
if py_pickle {
350350
let pickle = quote! {
351-
#[allow(clippy::needless_question_mark)]
352351
#[pyo3::pymethods]
353352
impl #ident {
354353
pub fn __setstate__(
@@ -373,7 +372,7 @@ pub fn py_streamable_macro(input: proc_macro::TokenStream) -> proc_macro::TokenS
373372
pub fn __getnewargs__<'py>(&self, py: pyo3::Python<'py>) -> pyo3::PyResult<pyo3::Bound<'py, pyo3::types::PyTuple>> {
374373
let mut args = Vec::new();
375374
#( args.push(#crate_name::ChiaToPython::to_python(&self.#fnames, py)?); )*
376-
Ok(pyo3::types::PyTuple::new(py, args)?)
375+
pyo3::types::PyTuple::new(py, args)
377376
}
378377
}
379378
};

0 commit comments

Comments
 (0)