Skip to content

Commit e441254

Browse files
fix clippy lints in array.rs and propertylist.rs
1 parent b61838c commit e441254

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

core-foundation/src/array.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ mod tests {
242242
use crate::string::{CFString, CFStringRef};
243243

244244
let cf_string = CFString::from_static_string("alongerstring");
245-
let array: CFArray = CFArray::from_CFTypes(&[cf_string.clone()]).into_untyped();
245+
let array: CFArray = CFArray::from_CFTypes(std::slice::from_ref(&cf_string)).into_untyped();
246246

247247
let cf_strings = array
248248
.iter()

core-foundation/src/propertylist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ impl CFPropertyListSubClass for crate::boolean::CFBoolean {}
9696
impl CFPropertyListSubClass for crate::number::CFNumber {}
9797

9898
declare_TCFType! {
99-
/// A CFPropertyList struct. This is superclass to [`CFData`], [`CFString`], [`CFArray`],
99+
/// A `CFPropertyList` struct. This is superclass to [`CFData`], [`CFString`], [`CFArray`],
100100
/// [`CFDictionary`], [`CFDate`], [`CFBoolean`], and [`CFNumber`].
101101
///
102102
/// This superclass type does not have its own `CFTypeID`, instead each instance has the `CFTypeID`

0 commit comments

Comments
 (0)