Skip to content

Commit 4b04bb3

Browse files
mejrsdavidhewitt
authored andcommitted
Allow useless conversion (#4838)
1 parent bcdbc93 commit 4b04bb3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyo3-macros-backend/src/quotes.rs

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ pub(crate) fn ok_wrap(obj: TokenStream, ctx: &Ctx) -> TokenStream {
1717
let pyo3_path = pyo3_path.to_tokens_spanned(*output_span);
1818
quote_spanned! { *output_span => {
1919
let obj = #obj;
20+
#[allow(clippy::useless_conversion)]
2021
#pyo3_path::impl_::wrap::converter(&obj).wrap(obj).map_err(::core::convert::Into::<#pyo3_path::PyErr>::into)
2122
}}
2223
}

0 commit comments

Comments
 (0)