events: Remove unnecessary IdentFragment::span implementations
This commit is contained in:
parent
c787c8351e
commit
a50b2d313a
@ -2,7 +2,6 @@
|
|||||||
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
|
|
||||||
use proc_macro2::Span;
|
|
||||||
use quote::{format_ident, IdentFragment};
|
use quote::{format_ident, IdentFragment};
|
||||||
use syn::{
|
use syn::{
|
||||||
braced,
|
braced,
|
||||||
@ -110,20 +109,12 @@ impl IdentFragment for EventKind {
|
|||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
fmt::Display::fmt(self, f)
|
fmt::Display::fmt(self, f)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn span(&self) -> Option<Span> {
|
|
||||||
Some(Span::call_site())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl IdentFragment for EventKindVariation {
|
impl IdentFragment for EventKindVariation {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
fmt::Display::fmt(self, f)
|
fmt::Display::fmt(self, f)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn span(&self) -> Option<Span> {
|
|
||||||
Some(Span::call_site())
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl EventKind {
|
impl EventKind {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user