Auto merge of #296 - waywardmonkeys:clippy-core-foundation-missing-default, r=jdm
clippy: Add missing Default impls. <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/core-foundation-rs/296) <!-- Reviewable:end -->
This commit is contained in:
@@ -77,3 +77,9 @@ impl CFMutableAttributedString {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for CFMutableAttributedString {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,6 +272,12 @@ impl<K, V> CFMutableDictionary<K, V> {
|
||||
}
|
||||
}
|
||||
|
||||
impl<K, V> Default for CFMutableDictionary<K, V> {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a, K, V> From<&'a CFDictionary<K, V>> for CFMutableDictionary<K, V> {
|
||||
/// Creates a new mutable dictionary with the key-value pairs from another dictionary.
|
||||
/// The capacity of the new mutable dictionary is not limited.
|
||||
|
||||
@@ -38,6 +38,12 @@ impl CFUUID {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for CFUUID {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(feature = "with-uuid")]
|
||||
impl Into<Uuid> for CFUUID {
|
||||
fn into(self) -> Uuid {
|
||||
|
||||
Reference in New Issue
Block a user