Commit ea00198
committed
fix: clippy::missing_errors_doc and clippy::double_must_use for from_tcp_rustls_with_timeouts
error: docs for function returning `Result` missing `# Errors` section
--> packages/axum-server/src/custom_axum_server.rs:52:1
|
52 | pub fn from_tcp_rustls_with_timeouts(socket: TcpListener, tls: RustlsConfig) -> RustlsServerResult {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: this function has a `#[must_use]` attribute with no message, but returns a type already marked as `#[must_use]`
--> packages/axum-server/src/custom_axum_server.rs:52:1
|
52 | pub fn from_tcp_rustls_with_timeouts(socket: TcpListener, tls: RustlsConfig) -> RustlsServerResult {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Added documentation with Errors section and removed #[must_use] attribute since Result type already has it.1 parent f0678be commit ea00198
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
56 | 60 | | |
57 | 61 | | |
58 | 62 | | |
| |||
0 commit comments