Fix bare_trait_objects deprecation
This commit is contained in:
@ -11,13 +11,13 @@ use {Codec, Error};
|
|||||||
|
|
||||||
pub struct Context {
|
pub struct Context {
|
||||||
ptr: *mut AVCodecContext,
|
ptr: *mut AVCodecContext,
|
||||||
owner: Option<Rc<Drop>>,
|
owner: Option<Rc<dyn Drop>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Send for Context {}
|
unsafe impl Send for Context {}
|
||||||
|
|
||||||
impl Context {
|
impl Context {
|
||||||
pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option<Rc<Drop>>) -> Self {
|
pub unsafe fn wrap(ptr: *mut AVCodecContext, owner: Option<Rc<dyn Drop>>) -> Self {
|
||||||
Context {
|
Context {
|
||||||
ptr: ptr,
|
ptr: ptr,
|
||||||
owner: owner,
|
owner: owner,
|
||||||
|
@ -6,13 +6,13 @@ use media;
|
|||||||
|
|
||||||
pub struct Parameters {
|
pub struct Parameters {
|
||||||
ptr: *mut AVCodecParameters,
|
ptr: *mut AVCodecParameters,
|
||||||
owner: Option<Rc<Drop>>,
|
owner: Option<Rc<dyn Drop>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
unsafe impl Send for Parameters {}
|
unsafe impl Send for Parameters {}
|
||||||
|
|
||||||
impl Parameters {
|
impl Parameters {
|
||||||
pub unsafe fn wrap(ptr: *mut AVCodecParameters, owner: Option<Rc<Drop>>) -> Self {
|
pub unsafe fn wrap(ptr: *mut AVCodecParameters, owner: Option<Rc<dyn Drop>>) -> Self {
|
||||||
Parameters {
|
Parameters {
|
||||||
ptr: ptr,
|
ptr: ptr,
|
||||||
owner: owner,
|
owner: owner,
|
||||||
|
@ -937,7 +937,7 @@ impl error::Error for ParsePixelError {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn cause(&self) -> Option<&error::Error> {
|
fn cause(&self) -> Option<&dyn error::Error> {
|
||||||
match *self {
|
match *self {
|
||||||
ParsePixelError::NulError(ref e) => Some(e),
|
ParsePixelError::NulError(ref e) => Some(e),
|
||||||
ParsePixelError::UnknownFormat => None,
|
ParsePixelError::UnknownFormat => None,
|
||||||
|
Reference in New Issue
Block a user