From d8016bacc2cfe59afd54d52dd0a654f0317c9630 Mon Sep 17 00:00:00 2001 From: Nora Widdecke Date: Mon, 1 Mar 2021 16:23:28 +0100 Subject: 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`. --- ffi-macros/src/rust2c.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ffi-macros') 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_"; -- cgit v1.2.3