We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcdbc93 commit 4b04bb3Copy full SHA for 4b04bb3
pyo3-macros-backend/src/quotes.rs
@@ -17,6 +17,7 @@ pub(crate) fn ok_wrap(obj: TokenStream, ctx: &Ctx) -> TokenStream {
17
let pyo3_path = pyo3_path.to_tokens_spanned(*output_span);
18
quote_spanned! { *output_span => {
19
let obj = #obj;
20
+ #[allow(clippy::useless_conversion)]
21
#pyo3_path::impl_::wrap::converter(&obj).wrap(obj).map_err(::core::convert::Into::<#pyo3_path::PyErr>::into)
22
}}
23
}
0 commit comments