Commit 0548434
committed
fix: E0599 and E0282 - no method named handle found for Result in axum-http-tracker-server
error[E0599]: no method named `handle` found for enum `std::result::Result<T, E>` in the current scope
--> packages/axum-http-tracker-server/src/server.rs:77:22
|
76 | ... Some(tls) => custom_axum_server::from_tcp_rustls_with_timeouts(socket, tls)
| ____________________-
77 | | ... .handle(handle)
| |___________-^^^^^^
error[E0599]: no method named `handle` found for enum `std::result::Result<T, E>` in the current scope
--> packages/axum-http-tracker-server/src/server.rs:85:22
|
84 | None => custom_axum_server::from_tcp_with_timeouts(socket)
| _________________________-
85 | | .handle(handle)
| |_____________________-^^^^^^
Added expect() calls to unwrap Result before calling handle() method for both TLS and non-TLS cases.1 parent a217bb9 commit 0548434
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
| |||
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| 86 | + | |
85 | 87 | | |
86 | 88 | | |
87 | 89 | | |
| |||
0 commit comments