From 5a438ccece6b62d310140b0d863c31f13e969699 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Thu, 8 Feb 2018 07:55:30 -0500 Subject: [PATCH] Make info_dictionary() return a more specific CFDictionary --- core-foundation/src/bundle.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core-foundation/src/bundle.rs b/core-foundation/src/bundle.rs index c1b9313..0e5909f 100644 --- a/core-foundation/src/bundle.rs +++ b/core-foundation/src/bundle.rs @@ -12,9 +12,10 @@ pub use core_foundation_sys::bundle::*; use core_foundation_sys::base::kCFAllocatorDefault; -use base::TCFType; +use base::{CFType, TCFType}; use url::CFURL; use dictionary::CFDictionary; +use string::CFString; declare_TCFType!{ @@ -42,7 +43,7 @@ impl CFBundle { } } - pub fn info_dictionary(&self) -> CFDictionary { + pub fn info_dictionary(&self) -> CFDictionary { unsafe { let info_dictionary = CFBundleGetInfoDictionary(self.0); TCFType::wrap_under_get_rule(info_dictionary)