Mercurial > lbo > hg > memoize
changeset 61:3b460e15706a
Fix compatibility with current version of syn crate
author | Jan Niehusmann <jan@gondor.com> |
---|---|
date | Thu, 22 Jul 2021 21:04:03 +0000 |
parents | 93cb8dda383e |
children | 9c7a2ca7c2fc |
files | Cargo.toml src/lib.rs |
diffstat | 2 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/Cargo.toml Fri Jul 23 05:29:04 2021 +0200 +++ b/Cargo.toml Thu Jul 22 21:04:03 2021 +0000 @@ -18,7 +18,7 @@ lazy_static = "1.4" proc-macro2 = "1.0" quote = "1.0" -syn = { version = "1.0, <1.0.58", features = ["full"] } +syn = { version = "1.0", features = ["full"] } lru = { version = "0.6", optional = true }
--- a/src/lib.rs Fri Jul 23 05:29:04 2021 +0200 +++ b/src/lib.rs Thu Jul 22 21:04:03 2021 +0000 @@ -1,10 +1,10 @@ #![crate_type = "proc-macro"] #![allow(unused_imports)] // Spurious complaints about a required trait import. -use syn::{self, export::ToTokens, parse_macro_input, spanned::Spanned, ItemFn}; +use syn::{self, parse_macro_input, spanned::Spanned, ItemFn}; use proc_macro::TokenStream; -use quote::{self}; +use quote::{self, ToTokens}; // This implementation of the storage backend does not depend on any more crates. #[cfg(not(feature = "full"))] @@ -46,7 +46,6 @@ #[cfg(feature = "full")] mod store { use proc_macro::TokenStream; - use syn::export::ToTokens; use syn::{parse as p, Expr}; #[derive(Default, Clone)]