From e95c55dbf5317386aceb044b829bf262bf6dd081 Mon Sep 17 00:00:00 2001 From: meh Date: Wed, 10 Jun 2015 22:05:20 +0200 Subject: [PATCH] codec/context: move impl Send closer to the type definition --- src/codec/context.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/codec/context.rs b/src/codec/context.rs index f6387b7..75abcae 100644 --- a/src/codec/context.rs +++ b/src/codec/context.rs @@ -15,6 +15,8 @@ pub struct Context { _own: bool, } +unsafe impl Send for Context { } + impl Context { pub unsafe fn wrap(ptr: *mut AVCodecContext) -> Self { Context { ptr: ptr, _own: false } @@ -138,8 +140,6 @@ impl Context { } } -unsafe impl Send for Context { } - impl Drop for Context { fn drop(&mut self) { if self._own {