diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2019-03-21 15:58:19 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-03-21 15:58:19 +0100 |
commit | 1bee3d4704726e0428478a31e465bca78163d306 (patch) | |
tree | f702fc0512fd5dd53977faf8dd79ffa30cc0eec8 | |
parent | c0a170a65cdc587c76787c3fc988be77bf4f6675 (diff) |
openpgp: Drop nonsensical constructor.
- UserAttribute packets contain subpackets, not strings.
-rw-r--r-- | openpgp/src/packet/user_attribute.rs | 9 |
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") |