Derive Debug for Ident/Span
Now that under the hood they implement Debug
diff --git a/src/ident.rs b/src/ident.rs
index dcd8dd1..181bac9 100644
--- a/src/ident.rs
+++ b/src/ident.rs
@@ -8,7 +8,7 @@
use Span;
use tokens;
-#[derive(Clone)]
+#[derive(Clone, Debug)]
pub struct Ident {
pub sym: Symbol,
pub span: Span,
@@ -77,12 +77,6 @@
}
}
-impl fmt::Debug for Ident {
- fn fmt(&self, formatter: &mut fmt::Formatter) -> fmt::Result {
- fmt::Debug::fmt(self.sym.as_str(), formatter)
- }
-}
-
impl<T: ?Sized> PartialEq<T> for Ident
where T: AsRef<str>
{