Fix linting errors
This commit is contained in:
parent
efc0463302
commit
f559e13afc
@ -1,3 +1,4 @@
|
|||||||
|
use std::any::Any;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
@ -11,13 +12,13 @@ use {Codec, Error};
|
|||||||
|
|
||||||
pub struct Context {
|
pub struct Context {
|
||||||
ptr: *mut AVCodecContext,
|
ptr: *mut AVCodecContext,
|
||||||
owner: Option<Rc<dyn Drop>>,
|
owner: Option<Rc<dyn Any>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Send for Context {}
|
unsafe impl Send for Context {}
|
||||||
|
|
||||||
impl Context {
|
impl Context {
|
||||||
pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option<Rc<dyn Drop>>) -> Self {
|
pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option<Rc<dyn Any>>) -> Self {
|
||||||
Context { ptr, owner }
|
Context { ptr, owner }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
use std::any::Any;
|
||||||
use std::rc::Rc;
|
use std::rc::Rc;
|
||||||
|
|
||||||
use super::{Context, Id};
|
use super::{Context, Id};
|
||||||
@ -6,13 +7,13 @@ use media;
|
|||||||
|
|
||||||
pub struct Parameters {
|
pub struct Parameters {
|
||||||
ptr: *mut AVCodecParameters,
|
ptr: *mut AVCodecParameters,
|
||||||
owner: Option<Rc<dyn Drop>>,
|
owner: Option<Rc<dyn Any>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Send for Parameters {}
|
unsafe impl Send for Parameters {}
|
||||||
|
|
||||||
impl Parameters {
|
impl Parameters {
|
||||||
pub unsafe fn wrap(ptr: *mut AVCodecParameters, owner: Option<Rc<dyn Drop>>) -> Self {
|
pub unsafe fn wrap(ptr: *mut AVCodecParameters, owner: Option<Rc<dyn Any>>) -> Self {
|
||||||
Parameters { ptr, owner }
|
Parameters { ptr, owner }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user