Fix CI fail
diff --git a/.travis.yml b/.travis.yml
index 80dce16..b90ada4 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -43,11 +43,11 @@
script:
- if [ "$TEST" = 1 ]; then cargo test --all --all-features; fi
- - build
- - build --features full
- - build --no-default-features --features derive
- - build --no-default-features --features full
- - build --all-features
+ - cargo build
+ - cargo build --features full
+ - cargo build --no-default-features --features derive
+ - cargo build --no-default-features --features full
+ - cargo build --all-features
notifications:
email:
diff --git a/Cargo.toml b/Cargo.toml
index 1d230f3..77ee804 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,17 +16,14 @@
members = ["examples/const_fn", "examples/const_fn_test"]
[dependencies]
-proc-macro2 = "0.4.4" # https://github.com/dtolnay/syn/blob/master/Cargo.toml
-quote = "0.6" # https://github.com/dtolnay/syn/blob/master/Cargo.toml
+proc-macro2 = "0.4.19"
+quote = "0.6"
[dependencies.syn]
version = "0.15.22"
default-features = false
features = ["parsing", "printing", "proc-macro"]
-[dev-dependencies]
-quote = "0.6.8"
-
[features]
default = ["derive", "clone-impls"]
diff --git a/examples/const_fn/lib.rs b/examples/const_fn/lib.rs
index fcdecf5..d3e0cf8 100644
--- a/examples/const_fn/lib.rs
+++ b/examples/const_fn/lib.rs
@@ -2,13 +2,14 @@
extern crate proc_macro;
extern crate proc_macro2;
+#[macro_use]
extern crate quote;
extern crate syn;
extern crate syn_mid;
use proc_macro::TokenStream;
use proc_macro2::TokenStream as TokenStream2;
-use quote::{quote, ToTokens};
+use quote::ToTokens;
use syn::{parse_macro_input, parse_quote};
use syn_mid::ItemFn;