diff --git a/core-foundation/src/attributed_string.rs b/core-foundation/src/attributed_string.rs index dea20fc..e0fa576 100644 --- a/core-foundation/src/attributed_string.rs +++ b/core-foundation/src/attributed_string.rs @@ -77,3 +77,9 @@ impl CFMutableAttributedString { } } } + +impl Default for CFMutableAttributedString { + fn default() -> Self { + Self::new() + } +} diff --git a/core-foundation/src/dictionary.rs b/core-foundation/src/dictionary.rs index a73809a..cf8af5c 100644 --- a/core-foundation/src/dictionary.rs +++ b/core-foundation/src/dictionary.rs @@ -272,6 +272,12 @@ impl CFMutableDictionary { } } +impl Default for CFMutableDictionary { + fn default() -> Self { + Self::new() + } +} + impl<'a, K, V> From<&'a CFDictionary> for CFMutableDictionary { /// Creates a new mutable dictionary with the key-value pairs from another dictionary. /// The capacity of the new mutable dictionary is not limited. diff --git a/core-foundation/src/uuid.rs b/core-foundation/src/uuid.rs index 8061337..b560bf2 100644 --- a/core-foundation/src/uuid.rs +++ b/core-foundation/src/uuid.rs @@ -38,6 +38,12 @@ impl CFUUID { } } +impl Default for CFUUID { + fn default() -> Self { + Self::new() + } +} + #[cfg(feature = "with-uuid")] impl Into for CFUUID { fn into(self) -> Uuid {