@@ -149,22 +149,22 @@ impl ParallelSystemDescriptorCoercion<()> for ParallelSystemDescriptor {
149149 }
150150
151151 fn label ( mut self , label : impl SystemLabel ) -> ParallelSystemDescriptor {
152- self . labels . push ( Box :: new ( label) ) ;
152+ self . labels . push ( label. dyn_clone ( ) ) ;
153153 self
154154 }
155155
156156 fn before < Marker > ( mut self , label : impl AsSystemLabel < Marker > ) -> ParallelSystemDescriptor {
157- self . before . push ( Box :: new ( label. as_system_label ( ) ) ) ;
157+ self . before . push ( label. as_system_label ( ) . dyn_clone ( ) ) ;
158158 self
159159 }
160160
161161 fn after < Marker > ( mut self , label : impl AsSystemLabel < Marker > ) -> ParallelSystemDescriptor {
162- self . after . push ( Box :: new ( label. as_system_label ( ) ) ) ;
162+ self . after . push ( label. as_system_label ( ) . dyn_clone ( ) ) ;
163163 self
164164 }
165165
166166 fn in_ambiguity_set ( mut self , set : impl AmbiguitySetLabel ) -> ParallelSystemDescriptor {
167- self . ambiguity_sets . push ( Box :: new ( set) ) ;
167+ self . ambiguity_sets . push ( set. dyn_clone ( ) ) ;
168168 self
169169 }
170170}
@@ -295,22 +295,22 @@ impl ExclusiveSystemDescriptorCoercion for ExclusiveSystemDescriptor {
295295 }
296296
297297 fn label ( mut self , label : impl SystemLabel ) -> ExclusiveSystemDescriptor {
298- self . labels . push ( Box :: new ( label) ) ;
298+ self . labels . push ( label. dyn_clone ( ) ) ;
299299 self
300300 }
301301
302302 fn before ( mut self , label : impl SystemLabel ) -> ExclusiveSystemDescriptor {
303- self . before . push ( Box :: new ( label) ) ;
303+ self . before . push ( label. dyn_clone ( ) ) ;
304304 self
305305 }
306306
307307 fn after ( mut self , label : impl SystemLabel ) -> ExclusiveSystemDescriptor {
308- self . after . push ( Box :: new ( label) ) ;
308+ self . after . push ( label. dyn_clone ( ) ) ;
309309 self
310310 }
311311
312312 fn in_ambiguity_set ( mut self , set : impl AmbiguitySetLabel ) -> ExclusiveSystemDescriptor {
313- self . ambiguity_sets . push ( Box :: new ( set) ) ;
313+ self . ambiguity_sets . push ( set. dyn_clone ( ) ) ;
314314 self
315315 }
316316
0 commit comments