Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

Remove Answer<'static from route implementation #5

Open
sergeysova opened this issue May 4, 2020 · 1 comment
Open

Remove Answer<'static from route implementation #5

sergeysova opened this issue May 4, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@sergeysova
Copy link
Member

We can generate type alias. Instead of this:

pub async fn route(
    app: web::Data<crate::App>,
) -> Answer<'static, register_request::Response> {

Generate result type:

pub async fn route(
    app: web::Data<crate::App>,
) -> register_request::Answer {
@sergeysova sergeysova added the enhancement New feature or request label May 4, 2020
@sergeysova
Copy link
Member Author

ref #17

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant