diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-10-14 11:36:45 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-10-14 12:01:22 +0200 |
commit | 57531dbe5b277a46982e4dd2b0ab6c20ebe43682 (patch) | |
tree | 9fddc14e92f2da4fd7c99c145d4c7ea76bf6a993 /openpgp/src/packet/userid.rs | |
parent | ea4eaf796404c0fde15509274190cc4668c5d08e (diff) |
Replace most 'extern crate' directives with 'use'.
- See #480.
Diffstat (limited to 'openpgp/src/packet/userid.rs')
-rw-r--r-- | openpgp/src/packet/userid.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/openpgp/src/packet/userid.rs b/openpgp/src/packet/userid.rs index 63426e22..139f3cff 100644 --- a/openpgp/src/packet/userid.rs +++ b/openpgp/src/packet/userid.rs @@ -59,7 +59,7 @@ impl ConventionallyParsedUserID { } fn parse(userid: String) -> Result<Self> { - lazy_static!{ + lazy_static::lazy_static!{ static ref USER_ID_PARSER: Regex = { // Whitespace. let ws_bare = " "; @@ -696,7 +696,7 @@ impl UserID { /// [conventional User ID]: #conventional-user-ids /// /// ``` - /// # extern crate sequoia_openpgp as openpgp; + /// # use sequoia_openpgp as openpgp; /// # use openpgp::packet::UserID; /// assert_eq!(UserID::from_address( /// "John Smith".into(), @@ -729,7 +729,7 @@ impl UserID { /// [conventional User ID]: #conventional-user-ids /// /// ``` - /// # extern crate sequoia_openpgp as openpgp; + /// # use sequoia_openpgp as openpgp; /// # use openpgp::packet::UserID; /// assert_eq!(UserID::from_unchecked_address( /// "NAS".into(), |