File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -980,13 +980,12 @@ impl CommandEncoder {
980980 ) ;
981981 }
982982
983- commands. drain ( ..) . map ( |cmd| {
983+ commands. drain ( ..) . inspect ( |cmd| {
984984 use crate :: device:: trace:: IntoTrace ;
985985
986986 if let Some ( ref mut trace) = trace_commands {
987987 trace. push ( cmd. clone ( ) . to_trace ( ) ) ;
988988 }
989- cmd
990989 } )
991990 } ;
992991
Original file line number Diff line number Diff line change @@ -619,15 +619,15 @@ impl<'a> IntoTrace for &'_ crate::binding_model::ResolvedBindGroupDescriptor<'a>
619619 }
620620 ResolvedBindingResource :: SamplerArray ( sampler_ids) => {
621621 let resolved: Vec < _ > =
622- sampler_ids. into_iter ( ) . map ( |id| id. to_trace ( ) ) . collect ( ) ;
622+ sampler_ids. iter ( ) . map ( |id| id. to_trace ( ) ) . collect ( ) ;
623623 BindingResource :: SamplerArray ( Cow :: Owned ( resolved) )
624624 }
625625 ResolvedBindingResource :: TextureView ( texture_view_id) => {
626626 BindingResource :: TextureView ( texture_view_id. to_trace ( ) )
627627 }
628628 ResolvedBindingResource :: TextureViewArray ( texture_view_ids) => {
629629 let resolved: Vec < _ > = texture_view_ids
630- . into_iter ( )
630+ . iter ( )
631631 . map ( |id| id. to_trace ( ) )
632632 . collect ( ) ;
633633 BindingResource :: TextureViewArray ( Cow :: Owned ( resolved) )
You can’t perform that action at this time.
0 commit comments