diff options
author | Nora Widdecke <nora@sequoia-pgp.org> | 2021-03-01 16:23:28 +0100 |
---|---|---|
committer | Nora Widdecke <nora@sequoia-pgp.org> | 2021-03-02 13:36:50 +0100 |
commit | d8016bacc2cfe59afd54d52dd0a654f0317c9630 (patch) | |
tree | 6feb8d2130e567425e63ba25ec58e9bd25b763df /ffi-macros | |
parent | 335b4b25cd3c9e25527f790db5ffc97485f7b226 (diff) |
ffi_macros: Fix import of ToTokens.
- The `syn` crate really does not want users to refer to their private
re-exports (https://github.com/dtolnay/syn/commit/957840e, in 1.0.58).
- Pull in `ToTokens` from its original source, `quote`.
- Fixes building with `syn >= 1.0.58`.
Diffstat (limited to 'ffi-macros')
-rw-r--r-- | ffi-macros/src/rust2c.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi-macros/src/rust2c.rs b/ffi-macros/src/rust2c.rs index d0e252f5..002c6199 100644 --- a/ffi-macros/src/rust2c.rs +++ b/ffi-macros/src/rust2c.rs @@ -1,5 +1,5 @@ use syn; -use syn::export::ToTokens; +use quote::ToTokens; use proc_macro2; const PREFIX: &'static str = "pgp_"; |