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

The return of IResult should be optimized #6

Open
Jzow opened this issue May 17, 2022 · 0 comments
Open

The return of IResult should be optimized #6

Jzow opened this issue May 17, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Jzow
Copy link
Member

Jzow commented May 17, 2022

rust said that the generic type must be specified, but there will be no data type when the default successful data is passed

let response: IResult<String> = IResult::success();
web::Json(response)

if use Result::success() will be prompted with an error that the type is not specified

@Jzow Jzow added the enhancement New feature or request label May 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant