@@ -100,6 +100,7 @@ impl GcIncParams {
100100 /// Sets the `pause` parameter.
101101 #[ cfg( not( feature = "luau" ) ) ]
102102 #[ cfg_attr( docsrs, doc( cfg( not( feature = "luau" ) ) ) ) ]
103+ #[ must_use]
103104 pub fn pause ( mut self , v : c_int ) -> Self {
104105 self . pause = Some ( v) ;
105106 self
@@ -108,12 +109,14 @@ impl GcIncParams {
108109 /// Sets the `goal` parameter.
109110 #[ cfg( any( feature = "luau" , doc) ) ]
110111 #[ cfg_attr( docsrs, doc( cfg( feature = "luau" ) ) ) ]
112+ #[ must_use]
111113 pub fn goal ( mut self , v : c_int ) -> Self {
112114 self . goal = Some ( v) ;
113115 self
114116 }
115117
116118 /// Sets the `step_multiplier` parameter.
119+ #[ must_use]
117120 pub fn step_multiplier ( mut self , v : c_int ) -> Self {
118121 self . step_multiplier = Some ( v) ;
119122 self
@@ -122,6 +125,7 @@ impl GcIncParams {
122125 /// Sets the `step_size` parameter.
123126 #[ cfg( any( feature = "lua55" , feature = "lua54" , feature = "luau" ) ) ]
124127 #[ cfg_attr( docsrs, doc( cfg( any( feature = "lua55" , feature = "lua54" , feature = "luau" ) ) ) ) ]
128+ #[ must_use]
125129 pub fn step_size ( mut self , v : c_int ) -> Self {
126130 self . step_size = Some ( v) ;
127131 self
@@ -155,12 +159,14 @@ pub struct GcGenParams {
155159#[ cfg( any( feature = "lua55" , feature = "lua54" ) ) ]
156160impl GcGenParams {
157161 /// Sets the `minor_multiplier` parameter.
162+ #[ must_use]
158163 pub fn minor_multiplier ( mut self , v : c_int ) -> Self {
159164 self . minor_multiplier = Some ( v) ;
160165 self
161166 }
162167
163168 /// Sets the `minor_to_major` threshold.
169+ #[ must_use]
164170 pub fn minor_to_major ( mut self , v : c_int ) -> Self {
165171 self . minor_to_major = Some ( v) ;
166172 self
@@ -169,6 +175,7 @@ impl GcGenParams {
169175 /// Sets the `major_to_minor` parameter.
170176 #[ cfg( feature = "lua55" ) ]
171177 #[ cfg_attr( docsrs, doc( cfg( feature = "lua55" ) ) ) ]
178+ #[ must_use]
172179 pub fn major_to_minor ( mut self , v : c_int ) -> Self {
173180 self . major_to_minor = Some ( v) ;
174181 self
0 commit comments