1 2 3 4 5 6 7 8 9 10
use proc_macro2::Span as Span2; use syn::spanned::Spanned; use crate::widgets::WidgetFunc; impl Spanned for WidgetFunc { fn span(&self) -> Span2 { self.path.span() } }