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:
bors-servo
2019-03-14 10:03:40 -04:00
committed by GitHub
3 changed files with 18 additions and 0 deletions
+6
View File
@@ -77,3 +77,9 @@ impl CFMutableAttributedString {
}
}
}
impl Default for CFMutableAttributedString {
fn default() -> Self {
Self::new()
}
}
+6
View File
@@ -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.
+6
View File
@@ -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 {