From 4df7056dc3543b3d38812d2c97ce5e3eb5858b99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20F=C3=A4rnstrand?= Date: Sun, 21 Jan 2018 18:07:23 +0100 Subject: [PATCH] Make info_dictionary return mutable dictionary --- core-foundation/src/bundle.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core-foundation/src/bundle.rs b/core-foundation/src/bundle.rs index 4b50623..cbae8a1 100644 --- a/core-foundation/src/bundle.rs +++ b/core-foundation/src/bundle.rs @@ -14,7 +14,7 @@ use core_foundation_sys::base::{CFRelease, kCFAllocatorDefault}; use base::TCFType; use url::CFURL; -use dictionary::CFDictionary; +use dictionary::CFMutableDictionary; declare_TCFType!{ @@ -42,7 +42,7 @@ impl CFBundle { } } - pub fn info_dictionary(&self) -> CFDictionary { + pub fn info_dictionary(&self) -> CFMutableDictionary { unsafe { let info_dictionary = CFBundleGetInfoDictionary(self.0); TCFType::wrap_under_get_rule(info_dictionary)