make expand ProcMacroServerSpan type live longer

This commit is contained in:
bit-aloo 2025-12-27 18:08:42 +05:30
parent 43cda6d5ec
commit 671aab6dbd
No known key found for this signature in database

View file

@ -37,7 +37,7 @@ impl Expander {
Ok(Expander { inner: library, modified_time })
}
pub(crate) fn expand<'a, S: ProcMacroSrvSpan>(
pub(crate) fn expand<'a, S: ProcMacroSrvSpan + 'a>(
&self,
macro_name: &str,
macro_body: TokenStream<S>,