aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid LeGare2017-01-31 09:25:04 -0600
committerEd Barnard2017-02-01 11:15:06 +0000
commitbf6b567f825421afb003322562dd229b8c1ce1a5 (patch)
treeee87d3a8e2d78869f46e9c4b3fd21b462bf4c9d9
parentb24c7c209e5e091f9d8ca4d596b5a3a29e669e4f (diff)
downloadrust-plist-bf6b567f825421afb003322562dd229b8c1ce1a5.tar.bz2
Remove unwanted From conversions
-rw-r--r--src/lib.rs22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 8e0f601..e63e18e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -271,24 +271,10 @@ impl From<Vec<Plist>> for Plist {
fn from(from: Vec<Plist>) -> Plist { Plist::Array(from) }
}
-impl<'a> From<&'a Vec<Plist>> for Plist {
- fn from(from: &'a Vec<Plist>) -> Plist { Plist::Array(from.clone()) }
-}
-
-impl<'a, T> From<&'a [T]> for Plist where &'a T: Into<Plist> {
- fn from(from: &'a [T]) -> Plist {
- Plist::Array(from.iter().map(Into::into).collect())
- }
-}
-
impl From<BTreeMap<String, Plist>> for Plist {
fn from(from: BTreeMap<String, Plist>) -> Plist { Plist::Dictionary(from) }
}
-impl<'a> From<&'a BTreeMap<String, Plist>> for Plist {
- fn from(from: &'a BTreeMap<String, Plist>) -> Plist { Plist::Dictionary(from.clone()) }
-}
-
impl From<bool> for Plist {
fn from(from: bool) -> Plist { Plist::Boolean(from) }
}
@@ -297,14 +283,6 @@ impl<'a> From<&'a bool> for Plist {
fn from(from: &'a bool) -> Plist { Plist::Boolean(*from) }
}
-impl From<Vec<u8>> for Plist {
- fn from(from: Vec<u8>) -> Plist { Plist::Data(from) }
-}
-
-impl<'a> From<&'a Vec<u8>> for Plist {
- fn from(from: &'a Vec<u8>) -> Plist { Plist::Data(from.clone()) }
-}
-
impl From<DateTime<UTC>> for Plist {
fn from(from: DateTime<UTC>) -> Plist { Plist::Date(from) }
}