Commit 02e4339
committed
fix: E0599 and E0282 - no method named handle found for Result in axum-rest-tracker-api-server
error[E0599]: no method named `handle` found for enum `std::result::Result<T, E>` in the current scope
--> packages/axum-rest-tracker-api-server/src/server.rs:272:22
|
271 | ... Some(tls) => custom_axum_server::from_tcp_rustls_with_timeouts(socket, tls)
| ____________________-
272 | | ... .handle(handle)
| |___________-^^^^^^
error[E0599]: no method named `handle` found for enum `std::result::Result<T, E>` in the current scope
--> packages/axum-rest-tracker-api-server/src/server.rs:280:22
|
279 | None => custom_axum_server::from_tcp_with_timeouts(socket)
| _________________________-
280 | | .handle(handle)
| |_____________________-^^^^^^
Added expect() calls to unwrap Result before calling handle() method for both TLS and non-TLS cases.1 parent 0548434 commit 02e4339
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
| 272 | + | |
272 | 273 | | |
273 | 274 | | |
274 | 275 | | |
| |||
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
| 281 | + | |
280 | 282 | | |
281 | 283 | | |
282 | 284 | | |
| |||
0 commit comments