Skip to content

Commit 2f7eb49

Browse files
committed
fix compile error with new syn version
1 parent f3d317e commit 2f7eb49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "proxy-enum"
3-
version = "0.3.0"
3+
version = "0.3.1"
44
authors = ["Moritz Bischof <[email protected]>"]
55
edition = "2018"
66
description = "Emulate dynamic dispatch and sealed classes using a proxy enum, which defers all method calls to its variants."

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ extern crate proc_macro2;
135135
use proc_macro::TokenStream;
136136
use std::collections::HashMap;
137137

138-
use syn::export::TokenStream2;
138+
use proc_macro2::TokenStream as TokenStream2;
139139
use syn::visit_mut::VisitMut;
140140
use syn::{
141141
parse2, parse_macro_input, Attribute, Fields, FnArg, Ident, ImplItem, Item, ItemEnum, ItemImpl,

0 commit comments

Comments
 (0)