codec/encoder/subtitle: implement DerefMut

This commit is contained in:
meh 2015-05-28 20:15:47 +02:00
parent cd9db3adc5
commit 6f07c48a04

View File

@ -1,4 +1,4 @@
use std::ops::Deref;
use std::ops::{Deref, DerefMut};
use libc::c_int;
use ffi::*;
@ -26,3 +26,9 @@ impl Deref for Subtitle {
&self.0
}
}
impl DerefMut for Subtitle {
fn deref_mut(&mut self) -> &mut<Self as Deref>::Target {
&mut self.0
}
}