Commit a217bb9
committed
fix: E0599 - no method named handle found for Result in health-check-api-server
error[E0599]: no method named `handle` found for enum `std::result::Result<T, E>` in the current scope
--> packages/axum-health-check-api-server/src/server.rs:120:10
|
119 | let running = axum_server::from_tcp(socket)
| ___________________-
120 | | .handle(handle)
| |_________-^^^^^^
Added expect() to unwrap Result before calling handle() method since from_tcp now returns Result<Server, Error>.1 parent ea00198 commit a217bb9
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
0 commit comments