Skip to content

Commit 0e9eee8

Browse files
committed
encoder: remove unneeded constraints
1 parent a32642f commit 0e9eee8

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/src/encoder.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,7 @@ impl<OP: BufferHandles> Encoder<AwaitingCaptureBuffers<OP>> {
184184
memory_type: <P::HandleType as BufferHandles>::SupportedMemoryType,
185185
num_capture: usize,
186186
capture_memory_provider: P,
187-
) -> Result<Encoder<ReadyToEncode<OP, P>>, RequestBuffersError>
188-
where
189-
for<'a> Queue<Capture, BuffersAllocated<P::HandleType>>:
190-
GetFreeCaptureBuffer<'a, P::HandleType>,
191-
{
187+
) -> Result<Encoder<ReadyToEncode<OP, P>>, RequestBuffersError> {
192188
Ok(Encoder {
193189
device: self.device,
194190
state: ReadyToEncode {
@@ -210,8 +206,6 @@ impl<OP: BufferHandles> Encoder<AwaitingCaptureBuffers<OP>> {
210206
) -> Result<Encoder<ReadyToEncode<OP, P>>, RequestBuffersError>
211207
where
212208
P::HandleType: PrimitiveBufferHandles,
213-
for<'a> Queue<Capture, BuffersAllocated<P::HandleType>>:
214-
GetFreeCaptureBuffer<'a, P::HandleType>,
215209
{
216210
self.allocate_capture_buffers_generic(
217211
P::HandleType::MEMORY_TYPE,

0 commit comments

Comments
 (0)