dictionary/owned: impl Default

This commit is contained in:
meh 2017-02-01 17:21:31 +01:00
parent 38d1e882f2
commit 575b440267

View File

@ -9,6 +9,12 @@ pub struct Owned<'a> {
inner: mutable::Ref<'a>,
}
impl<'a> Default for Owned<'a> {
fn default() -> Self {
Self::new()
}
}
impl<'a> Owned<'a> {
pub unsafe fn own(ptr: *mut AVDictionary) -> Self {
Owned { inner: mutable::Ref::wrap(ptr) }