@@ -406,6 +406,7 @@ pub fn generate(
406
406
#[ doc( hidden) ]
407
407
#[ allow( unused_variables) ]
408
408
#[ allow( clippy:: extra_unused_lifetimes) ]
409
+ #[ allow( clippy:: unnecessary_box_returns) ]
409
410
// If we use the lifetime here for casting to the specific Constructor type, then
410
411
// clippy for some reason thinks that the lifetime is unused even though it is used
411
412
// by the `as` expression.
@@ -492,6 +493,7 @@ mod tests {
492
493
& blocks. cxx_qt_mod_contents [ 0 ] ,
493
494
quote ! {
494
495
#[ doc( hidden) ]
496
+ #[ allow( clippy:: unnecessary_box_returns) ]
495
497
pub fn create_rs_MyObjectRust( ) -> std:: boxed:: Box <MyObjectRust >
496
498
{
497
499
std:: boxed:: Box :: new( core:: default :: Default :: default ( ) )
@@ -600,6 +602,7 @@ mod tests {
600
602
#[ doc( hidden) ]
601
603
#[ allow( unused_variables) ]
602
604
#[ allow( clippy:: extra_unused_lifetimes) ]
605
+ #[ allow( clippy:: unnecessary_box_returns) ]
603
606
pub fn new_rs_MyObject_0( new_arguments: qobject:: CxxQtConstructorNewArgumentsMyObject0 ) -> std:: boxed:: Box <MyObjectRust > {
604
607
std:: boxed:: Box :: new(
605
608
<qobject:: MyObject as cxx_qt:: Constructor <( ) > >:: new( ( ) )
@@ -733,6 +736,7 @@ mod tests {
733
736
#[ doc( hidden) ]
734
737
#[ allow( unused_variables) ]
735
738
#[ allow( clippy:: extra_unused_lifetimes) ]
739
+ #[ allow( clippy:: unnecessary_box_returns) ]
736
740
pub fn new_rs_MyObject_1( new_arguments: qobject:: CxxQtConstructorNewArgumentsMyObject1 ) -> std:: boxed:: Box <MyObjectRust > {
737
741
std:: boxed:: Box :: new(
738
742
<qobject:: MyObject as cxx_qt:: Constructor <( * const QObject , ) > >:: new(
0 commit comments