Update Parser trait to look like Parse
diff --git a/src/lit.rs b/src/lit.rs
index 5b2bf86..1b9efac 100644
--- a/src/lit.rs
+++ b/src/lit.rs
@@ -15,7 +15,7 @@
#[cfg(feature = "parsing")]
use proc_macro2::TokenStream;
#[cfg(feature = "parsing")]
-use {Error, Synom};
+use Error;
use proc_macro2::TokenTree;
@@ -24,6 +24,8 @@
#[cfg(feature = "parsing")]
use lookahead;
+#[cfg(feature = "parsing")]
+use parse::Parse;
ast_enum_of_structs! {
/// A Rust literal such as a string or integer or boolean.
@@ -125,7 +127,7 @@
///
/// All spans in the syntax tree will point to the span of this `LitStr`.
#[cfg(feature = "parsing")]
- pub fn parse<T: Synom>(&self) -> Result<T, Error> {
+ pub fn parse<T: Parse>(&self) -> Result<T, Error> {
use proc_macro2::Group;
// Parse string literal into a token stream with every span equal to the