From f559e13afc4050faaa3d9277df94e1d3599886b4 Mon Sep 17 00:00:00 2001 From: Polochon-street Date: Sat, 2 Oct 2021 22:48:14 +0200 Subject: [PATCH] Fix linting errors --- src/codec/context.rs | 5 +++-- src/codec/parameters.rs | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/codec/context.rs b/src/codec/context.rs index f14ab23..026857d 100644 --- a/src/codec/context.rs +++ b/src/codec/context.rs @@ -1,3 +1,4 @@ +use std::any::Any; use std::ptr; use std::rc::Rc; @@ -11,13 +12,13 @@ use {Codec, Error}; pub struct Context { ptr: *mut AVCodecContext, - owner: Option>, + owner: Option>, } unsafe impl Send for Context {} impl Context { - pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option>) -> Self { + pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option>) -> Self { Context { ptr, owner } } diff --git a/src/codec/parameters.rs b/src/codec/parameters.rs index f729a1f..97ff6af 100644 --- a/src/codec/parameters.rs +++ b/src/codec/parameters.rs @@ -1,3 +1,4 @@ +use std::any::Any; use std::rc::Rc; use super::{Context, Id}; @@ -6,13 +7,13 @@ use media; pub struct Parameters { ptr: *mut AVCodecParameters, - owner: Option>, + owner: Option>, } unsafe impl Send for Parameters {} impl Parameters { - pub unsafe fn wrap(ptr: *mut AVCodecParameters, owner: Option>) -> Self { + pub unsafe fn wrap(ptr: *mut AVCodecParameters, owner: Option>) -> Self { Parameters { ptr, owner } }