diff --git a/vulkano-taskgraph/src/command_buffer/commands/dynamic_state.rs b/vulkano-taskgraph/src/command_buffer/commands/dynamic_state.rs index 79ae0b82a3..7867bec579 100644 --- a/vulkano-taskgraph/src/command_buffer/commands/dynamic_state.rs +++ b/vulkano-taskgraph/src/command_buffer/commands/dynamic_state.rs @@ -780,7 +780,7 @@ impl RecordingCommandBuffer<'_> { fragment_size: [u32; 2], combiner_ops: [FragmentShadingRateCombinerOp; 2], ) -> Result<&mut Self> { - unsafe { Ok(self.set_fragment_shading_rate_unchecked(fragment_size, combiner_ops)) } + Ok(unsafe { self.set_fragment_shading_rate_unchecked(fragment_size, combiner_ops) }) } pub unsafe fn set_fragment_shading_rate_unchecked(