@@ -140,8 +140,7 @@ pub fn generate_rust_signal(
140
140
#[ doc = "Connect the given function pointer to the signal " ]
141
141
#[ doc = #signal_name_cpp_str]
142
142
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
143
- #[ must_use]
144
- pub fn #connect_ident_rust<F : FnMut ( #self_type_qualified, #( #parameters_qualified_type) , * ) + ' static >( self : #self_type_qualified, mut closure: F , conn_type: cxx_qt_lib:: ConnectionType ) -> cxx_qt_lib:: QMetaObjectConnection
143
+ pub fn #connect_ident_rust<F : FnMut ( #self_type_qualified, #( #parameters_qualified_type) , * ) + ' static >( self : #self_type_qualified, mut closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnection
145
144
{
146
145
#module_ident:: #free_connect_ident_rust(
147
146
self ,
@@ -158,13 +157,12 @@ pub fn generate_rust_signal(
158
157
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
159
158
#[ doc = "\n " ]
160
159
#[ doc = "Note that this method uses a AutoConnection connection type." ]
161
- #[ must_use]
162
- pub fn #on_ident_rust<F : FnMut ( #self_type_qualified, #( #parameters_qualified_type) , * ) + ' static >( self : #self_type_qualified, mut closure: F ) -> cxx_qt_lib:: QMetaObjectConnection
160
+ pub fn #on_ident_rust<F : FnMut ( #self_type_qualified, #( #parameters_qualified_type) , * ) + ' static >( self : #self_type_qualified, mut closure: F ) -> cxx_qt:: QMetaObjectConnection
163
161
{
164
162
#module_ident:: #free_connect_ident_rust(
165
163
self ,
166
164
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <#closure_struct>:: new( Box :: new( closure) ) ,
167
- cxx_qt_lib :: ConnectionType :: AutoConnection ,
165
+ cxx_qt :: ConnectionType :: AutoConnection ,
168
166
)
169
167
}
170
168
}
@@ -337,8 +335,7 @@ mod tests {
337
335
#[ doc = "Connect the given function pointer to the signal " ]
338
336
#[ doc = "ready" ]
339
337
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
340
- #[ must_use]
341
- pub fn connect_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt_lib:: ConnectionType ) -> cxx_qt_lib:: QMetaObjectConnection
338
+ pub fn connect_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnection
342
339
{
343
340
ffi:: MyObject_connect_ready (
344
341
self ,
@@ -358,13 +355,12 @@ mod tests {
358
355
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
359
356
#[ doc = "\n " ]
360
357
#[ doc = "Note that this method uses a AutoConnection connection type." ]
361
- #[ must_use]
362
- pub fn on_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt_lib:: QMetaObjectConnection
358
+ pub fn on_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt:: QMetaObjectConnection
363
359
{
364
360
ffi:: MyObject_connect_ready (
365
361
self ,
366
362
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosureready >:: new( Box :: new( closure) ) ,
367
- cxx_qt_lib :: ConnectionType :: AutoConnection ,
363
+ cxx_qt :: ConnectionType :: AutoConnection ,
368
364
)
369
365
}
370
366
}
@@ -504,8 +500,7 @@ mod tests {
504
500
#[ doc = "Connect the given function pointer to the signal " ]
505
501
#[ doc = "dataChanged" ]
506
502
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
507
- #[ must_use]
508
- pub fn connect_data_changed<F : FnMut ( core:: pin:: Pin <& mut MyObject >, i32 , cxx:: UniquePtr <QColor >) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt_lib:: ConnectionType ) -> cxx_qt_lib:: QMetaObjectConnection
503
+ pub fn connect_data_changed<F : FnMut ( core:: pin:: Pin <& mut MyObject >, i32 , cxx:: UniquePtr <QColor >) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnection
509
504
{
510
505
ffi:: MyObject_connect_data_changed (
511
506
self ,
@@ -525,13 +520,12 @@ mod tests {
525
520
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
526
521
#[ doc = "\n " ]
527
522
#[ doc = "Note that this method uses a AutoConnection connection type." ]
528
- #[ must_use]
529
- pub fn on_data_changed<F : FnMut ( core:: pin:: Pin <& mut MyObject >, i32 , cxx:: UniquePtr <QColor >) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt_lib:: QMetaObjectConnection
523
+ pub fn on_data_changed<F : FnMut ( core:: pin:: Pin <& mut MyObject >, i32 , cxx:: UniquePtr <QColor >) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt:: QMetaObjectConnection
530
524
{
531
525
ffi:: MyObject_connect_data_changed (
532
526
self ,
533
527
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosuredataChanged >:: new( Box :: new( closure) ) ,
534
- cxx_qt_lib :: ConnectionType :: AutoConnection ,
528
+ cxx_qt :: ConnectionType :: AutoConnection ,
535
529
)
536
530
}
537
531
}
@@ -665,8 +659,7 @@ mod tests {
665
659
#[ doc = "Connect the given function pointer to the signal " ]
666
660
#[ doc = "unsafeSignal" ]
667
661
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
668
- #[ must_use]
669
- pub fn connect_unsafe_signal<F : FnMut ( core:: pin:: Pin <& mut MyObject >, * mut T ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt_lib:: ConnectionType ) -> cxx_qt_lib:: QMetaObjectConnection
662
+ pub fn connect_unsafe_signal<F : FnMut ( core:: pin:: Pin <& mut MyObject >, * mut T ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnection
670
663
{
671
664
ffi:: MyObject_connect_unsafe_signal (
672
665
self ,
@@ -686,13 +679,12 @@ mod tests {
686
679
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
687
680
#[ doc = "\n " ]
688
681
#[ doc = "Note that this method uses a AutoConnection connection type." ]
689
- #[ must_use]
690
- pub fn on_unsafe_signal<F : FnMut ( core:: pin:: Pin <& mut MyObject >, * mut T ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt_lib:: QMetaObjectConnection
682
+ pub fn on_unsafe_signal<F : FnMut ( core:: pin:: Pin <& mut MyObject >, * mut T ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt:: QMetaObjectConnection
691
683
{
692
684
ffi:: MyObject_connect_unsafe_signal (
693
685
self ,
694
686
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosureunsafeSignal >:: new( Box :: new( closure) ) ,
695
- cxx_qt_lib :: ConnectionType :: AutoConnection ,
687
+ cxx_qt :: ConnectionType :: AutoConnection ,
696
688
)
697
689
}
698
690
}
@@ -824,8 +816,7 @@ mod tests {
824
816
#[ doc = "Connect the given function pointer to the signal " ]
825
817
#[ doc = "baseName" ]
826
818
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
827
- #[ must_use]
828
- pub fn connect_existing_signal<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt_lib:: ConnectionType ) -> cxx_qt_lib:: QMetaObjectConnection
819
+ pub fn connect_existing_signal<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnection
829
820
{
830
821
ffi:: MyObject_connect_existing_signal (
831
822
self ,
@@ -845,13 +836,12 @@ mod tests {
845
836
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
846
837
#[ doc = "\n " ]
847
838
#[ doc = "Note that this method uses a AutoConnection connection type." ]
848
- #[ must_use]
849
- pub fn on_existing_signal<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt_lib:: QMetaObjectConnection
839
+ pub fn on_existing_signal<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt:: QMetaObjectConnection
850
840
{
851
841
ffi:: MyObject_connect_existing_signal (
852
842
self ,
853
843
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosurebaseName >:: new( Box :: new( closure) ) ,
854
- cxx_qt_lib :: ConnectionType :: AutoConnection ,
844
+ cxx_qt :: ConnectionType :: AutoConnection ,
855
845
)
856
846
}
857
847
}
@@ -978,8 +968,7 @@ mod tests {
978
968
#[ doc = "Connect the given function pointer to the signal " ]
979
969
#[ doc = "ready" ]
980
970
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
981
- #[ must_use]
982
- pub fn connect_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt_lib:: ConnectionType ) -> cxx_qt_lib:: QMetaObjectConnection
971
+ pub fn connect_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnection
983
972
{
984
973
ffi:: MyObject_connect_ready (
985
974
self ,
@@ -999,13 +988,12 @@ mod tests {
999
988
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
1000
989
#[ doc = "\n " ]
1001
990
#[ doc = "Note that this method uses a AutoConnection connection type." ]
1002
- #[ must_use]
1003
- pub fn on_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt_lib:: QMetaObjectConnection
991
+ pub fn on_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt:: QMetaObjectConnection
1004
992
{
1005
993
ffi:: MyObject_connect_ready (
1006
994
self ,
1007
995
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosureready >:: new( Box :: new( closure) ) ,
1008
- cxx_qt_lib :: ConnectionType :: AutoConnection ,
996
+ cxx_qt :: ConnectionType :: AutoConnection ,
1009
997
)
1010
998
}
1011
999
}
@@ -1124,8 +1112,7 @@ mod tests {
1124
1112
#[ doc = "Connect the given function pointer to the signal " ]
1125
1113
#[ doc = "ready" ]
1126
1114
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
1127
- #[ must_use]
1128
- pub fn connect_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt_lib:: ConnectionType ) -> cxx_qt_lib:: QMetaObjectConnection
1115
+ pub fn connect_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F , conn_type: cxx_qt:: ConnectionType ) -> cxx_qt:: QMetaObjectConnection
1129
1116
{
1130
1117
ffi:: MyObject_connect_ready (
1131
1118
self ,
@@ -1145,13 +1132,12 @@ mod tests {
1145
1132
#[ doc = ", so that when the signal is emitted the function pointer is executed." ]
1146
1133
#[ doc = "\n " ]
1147
1134
#[ doc = "Note that this method uses a AutoConnection connection type." ]
1148
- #[ must_use]
1149
- pub fn on_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt_lib:: QMetaObjectConnection
1135
+ pub fn on_ready<F : FnMut ( core:: pin:: Pin <& mut MyObject >, ) + ' static >( self : core:: pin:: Pin <& mut MyObject >, mut closure: F ) -> cxx_qt:: QMetaObjectConnection
1150
1136
{
1151
1137
ffi:: MyObject_connect_ready (
1152
1138
self ,
1153
1139
cxx_qt:: signalhandler:: CxxQtSignalHandler :: <MyObjectCxxQtSignalClosureready >:: new( Box :: new( closure) ) ,
1154
- cxx_qt_lib :: ConnectionType :: AutoConnection ,
1140
+ cxx_qt :: ConnectionType :: AutoConnection ,
1155
1141
)
1156
1142
}
1157
1143
}
0 commit comments