events: Remove unnecessary IdentFragment::span implementations

This commit is contained in:
Jonas Platte 2022-03-29 15:28:33 +02:00 committed by Jonas Platte
parent c787c8351e
commit a50b2d313a

View File

@ -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<Span> {
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<Span> {
Some(Span::call_site())
}
}
impl EventKind {