Skip to content

fix(derive): use call_site to avoid linter false positives#647

Merged
GuillaumeGomez merged 2 commits intoaskama-rs:mainfrom
ymelois:fix/643/use-mixed-site
Dec 25, 2025
Merged

fix(derive): use call_site to avoid linter false positives#647
GuillaumeGomez merged 2 commits intoaskama-rs:mainfrom
ymelois:fix/643/use-mixed-site

Conversation

@ymelois
Copy link
Copy Markdown
Contributor

@ymelois ymelois commented Dec 25, 2025

Implements the suggestion from #643 (comment) by using Span::call_site().

Applied call-site spans to generated impl headers/targets, fixing #642.

Fixes #642
Fixes #643

GuillaumeGomez
GuillaumeGomez previously approved these changes Dec 25, 2025
@ymelois
Copy link
Copy Markdown
Contributor Author

ymelois commented Dec 25, 2025

seems like Span::mixed_site doesn't work in no_std context. replacing it with Span::call_site instead passes the tests

@ymelois ymelois force-pushed the fix/643/use-mixed-site branch from ec261ed to e3cb26d Compare December 25, 2025 18:16
@ymelois ymelois changed the title fix(derive): use mixed_site to avoid linter false positives fix(derive): use call_site to avoid linter false positives Dec 25, 2025
Implements the suggestion from askama-rs#643 (comment) by using `Span::call_site()`.
Applied call-site spans to generated impl headers/targets, fixing askama-rs#642.
@ymelois ymelois force-pushed the fix/643/use-mixed-site branch from e3cb26d to 18165d0 Compare December 25, 2025 18:19
@GuillaumeGomez
Copy link
Copy Markdown
Collaborator

Thanks!

@GuillaumeGomez GuillaumeGomez merged commit c8df0a8 into askama-rs:main Dec 25, 2025
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

clippy::elidable_lifetime_names gets invalidly triggered on v0.15 unused_qualifications gets triggered on v0.15

2 participants