Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
svartalf committed Jun 8, 2020
1 parent c75caaf commit c601812
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions heim-common/src/sys/macos/iokit/properties.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ impl DictionaryProps for CFDictionary<CFString, CFType> {
let key = CFString::from_static_string(raw_key);

self.find(&key)
.and_then(|value_ref| {
.map(|value_ref| {
unsafe {
debug_assert!(value_ref.type_of() == CFDictionaryGetTypeID());
}
Expand All @@ -39,7 +39,7 @@ impl DictionaryProps for CFDictionary<CFString, CFType> {
// and it does not decrements here.
let ptr = value_ref.to_void() as CFDictionaryRef;

unsafe { Some(CFDictionary::wrap_under_get_rule(ptr)) }
unsafe { CFDictionary::wrap_under_get_rule(ptr) }
})
// TODO: What should we put instead of the empty second argument?
.ok_or_else(|| Error::missing_key(raw_key, ""))
Expand Down

0 comments on commit c601812

Please sign in to comment.