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 /ffi-macros | |
parent | ea4eaf796404c0fde15509274190cc4668c5d08e (diff) |
Replace most 'extern crate' directives with 'use'.
- See #480.
Diffstat (limited to 'ffi-macros')
-rw-r--r-- | ffi-macros/src/lib.rs | 10 | ||||
-rw-r--r-- | ffi-macros/src/rust2c.rs | 4 |
2 files changed, 6 insertions, 8 deletions
diff --git a/ffi-macros/src/lib.rs b/ffi-macros/src/lib.rs index db37daef..6a3d2386 100644 --- a/ffi-macros/src/lib.rs +++ b/ffi-macros/src/lib.rs @@ -5,15 +5,13 @@ use std::collections::HashMap; use std::io::Write; -extern crate lazy_static; use lazy_static::lazy_static; -extern crate syn; +use syn; use syn::parse_quote; use syn::spanned::Spanned; -extern crate quote; -extern crate proc_macro; -extern crate proc_macro2; -extern crate sha2; +use proc_macro; +use proc_macro2; +use sha2; use proc_macro::TokenStream; use proc_macro2::TokenStream as TokenStream2; diff --git a/ffi-macros/src/rust2c.rs b/ffi-macros/src/rust2c.rs index 2e469703..d0e252f5 100644 --- a/ffi-macros/src/rust2c.rs +++ b/ffi-macros/src/rust2c.rs @@ -1,6 +1,6 @@ -extern crate syn; +use syn; use syn::export::ToTokens; -extern crate proc_macro2; +use proc_macro2; const PREFIX: &'static str = "pgp_"; |