Fix unused code warnings on some feature combinations
diff --git a/src/token.rs b/src/token.rs
index b672921..b206548 100644
--- a/src/token.rs
+++ b/src/token.rs
@@ -102,7 +102,9 @@
 use proc_macro2::Delimiter;
 #[cfg(feature = "printing")]
 use proc_macro2::TokenStream;
-use proc_macro2::{Ident, Span};
+#[cfg(any(feature = "parsing", feature = "printing"))]
+use proc_macro2::Ident;
+use proc_macro2::Span;
 #[cfg(feature = "printing")]
 use quote::{ToTokens, TokenStreamExt};
 
@@ -152,6 +154,7 @@
     peek(&buffer)
 }
 
+#[cfg(any(feature = "full", feature = "derive"))]
 macro_rules! impl_token {
     ($name:ident $display:expr) => {
         #[cfg(feature = "parsing")]