@@ -406,6 +406,7 @@ pub fn generate(
406406 #[ doc( hidden) ]
407407 #[ allow( unused_variables) ]
408408 #[ allow( clippy:: extra_unused_lifetimes) ]
409+ #[ allow( clippy:: unnecessary_box_returns) ]
409410 // If we use the lifetime here for casting to the specific Constructor type, then
410411 // clippy for some reason thinks that the lifetime is unused even though it is used
411412 // by the `as` expression.
@@ -492,6 +493,7 @@ mod tests {
492493 & blocks. cxx_qt_mod_contents [ 0 ] ,
493494 quote ! {
494495 #[ doc( hidden) ]
496+ #[ allow( clippy:: unnecessary_box_returns) ]
495497 pub fn create_rs_MyObjectRust( ) -> std:: boxed:: Box <MyObjectRust >
496498 {
497499 std:: boxed:: Box :: new( core:: default :: Default :: default ( ) )
@@ -600,6 +602,7 @@ mod tests {
600602 #[ doc( hidden) ]
601603 #[ allow( unused_variables) ]
602604 #[ allow( clippy:: extra_unused_lifetimes) ]
605+ #[ allow( clippy:: unnecessary_box_returns) ]
603606 pub fn new_rs_MyObject_0( new_arguments: qobject:: CxxQtConstructorNewArgumentsMyObject0 ) -> std:: boxed:: Box <MyObjectRust > {
604607 std:: boxed:: Box :: new(
605608 <qobject:: MyObject as cxx_qt:: Constructor <( ) > >:: new( ( ) )
@@ -733,6 +736,7 @@ mod tests {
733736 #[ doc( hidden) ]
734737 #[ allow( unused_variables) ]
735738 #[ allow( clippy:: extra_unused_lifetimes) ]
739+ #[ allow( clippy:: unnecessary_box_returns) ]
736740 pub fn new_rs_MyObject_1( new_arguments: qobject:: CxxQtConstructorNewArgumentsMyObject1 ) -> std:: boxed:: Box <MyObjectRust > {
737741 std:: boxed:: Box :: new(
738742 <qobject:: MyObject as cxx_qt:: Constructor <( * const QObject , ) > >:: new(
0 commit comments