Skip to content
Discussion options

You must be logged in to vote

If you actually run the router with

axum::Server::bind(&addr)
    .serve(app.into_make_service())
    .await
    .unwrap();

the compile is able to infer the types.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@davidpdrsn
Comment options

@jplatte
Comment options

@davidpdrsn
Comment options

@davidpdrsn
Comment options

@jplatte
Comment options

Answer selected by davidpdrsn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants