Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Axum 0.8: no method named into_response found for struct PreEscaped #463

Open
d6y opened this issue Jan 9, 2025 · 1 comment
Open

Axum 0.8: no method named into_response found for struct PreEscaped #463

d6y opened this issue Jan 9, 2025 · 1 comment

Comments

@d6y
Copy link

d6y commented Jan 9, 2025

Hello! I've been updating a project from Axum 0.7 to 0.8 and I've run into:

no method named `into_response` found for struct `PreEscaped`

when using html! and converting to an Axum response.

I've created an example that compiles under Axum 0.7:
https://github.com/d6y/axum-maud-into-example/blob/main/src/main.rs

I've created the failing change as:
d6y/axum-maud-into-example#1

It feels like I've missed something basic: any clues much appreciated.

@adamtrilling
Copy link

Make sure you've included the axum feature for maud in your Cargo.toml

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

No branches or pull requests

2 participants