summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--openpgp/src/packet/user_attribute.rs9
1 files changed, 0 insertions, 9 deletions
diff --git a/openpgp/src/packet/user_attribute.rs b/openpgp/src/packet/user_attribute.rs
index dac6a3dd..bf60c916 100644
--- a/openpgp/src/packet/user_attribute.rs
+++ b/openpgp/src/packet/user_attribute.rs
@@ -40,15 +40,6 @@ impl From<Vec<u8>> for UserAttribute {
}
}
-impl<'a> From<&'a str> for UserAttribute {
- fn from(u: &'a str) -> Self {
- let b = u.as_bytes();
- let mut v = Vec::with_capacity(b.len());
- v.extend_from_slice(b);
- v.into()
- }
-}
-
impl fmt::Debug for UserAttribute {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
f.debug_struct("UserAttribute")