diff --git a/crates/ruma-macros/src/events/event_parse.rs b/crates/ruma-macros/src/events/event_parse.rs index 69af061a..72185d69 100644 --- a/crates/ruma-macros/src/events/event_parse.rs +++ b/crates/ruma-macros/src/events/event_parse.rs @@ -2,7 +2,6 @@ use std::fmt; -use proc_macro2::Span; use quote::{format_ident, IdentFragment}; use syn::{ braced, @@ -110,20 +109,12 @@ impl IdentFragment for EventKind { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Display::fmt(self, f) } - - fn span(&self) -> Option { - Some(Span::call_site()) - } } impl IdentFragment for EventKindVariation { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { fmt::Display::fmt(self, f) } - - fn span(&self) -> Option { - Some(Span::call_site()) - } } impl EventKind {