From 575b440267550c0ea697e54c1f27666a8affe8c8 Mon Sep 17 00:00:00 2001 From: meh Date: Wed, 1 Feb 2017 17:21:31 +0100 Subject: [PATCH] dictionary/owned: impl Default --- src/util/dictionary/owned.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/util/dictionary/owned.rs b/src/util/dictionary/owned.rs index e5fbbad..ff0238d 100644 --- a/src/util/dictionary/owned.rs +++ b/src/util/dictionary/owned.rs @@ -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) }