events: Remove unnecessary IdentFragment::span implementations
This commit is contained in:
		
							parent
							
								
									c787c8351e
								
							
						
					
					
						commit
						a50b2d313a
					
				| @ -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 { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user