error[E0308]: mismatched types
--> src\handlers.rs:41:5
|
39 | ) -> Result<impl IntoResponse, StatusCode> {
| ------------------------------------- expected `Result<_, StatusCode>` because of return type
40 | todo!();
41 | Ok(StatusCode::OK)
| ^^^^^^^^^^^^^^^^^^ expected `Result<_, StatusCode>`, found `Result<StatusCode, Error>`
|
= note: expected enum `Result<_, StatusCode>`
found enum `Result<StatusCode, anyhow::Error>`
help: try wrapping the expression in `Ok`
|
41 | Ok(Ok(StatusCode::OK))
| +++ +
-
Notifications
You must be signed in to change notification settings - Fork 0
umemak/my-todo
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Webアプリ開発で学ぶ Rust言語入門 写経
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published