openpgp: Avoid unnecessary heap allocations when creating UserIDs.
- When creating a
UserID
, avoid unnecessary heap allocations by making better use of what we have. For example, we can directly convert aString
to aVec<u8>
without allocating aVec<u8>
, and copying the contents.