rustls requires it.
```
error: package `rustls v0.21.8` cannot be built because it requires rustc 1.61 or newer, while the currently active rustc version is 1.60.0
```
```
warning: variables can be used directly in the `format!` string
--> tests/test.rs:59:43
|
59 | .unwrap_or_else(|err| eprintln!("server: {:?}", err));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
59 - .unwrap_or_else(|err| eprintln!("server: {:?}", err));
59 + .unwrap_or_else(|err| eprintln!("server: {err:?}"));
|
warning: variables can be used directly in the `format!` string
--> tests/test.rs:64:46
|
64 | .unwrap_or_else(|err: io::Error| eprintln!("server: {:?}", err)),
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
help: change this to
|
64 - .unwrap_or_else(|err: io::Error| eprintln!("server: {:?}", err)),
64 + .unwrap_or_else(|err: io::Error| eprintln!("server: {err:?}")),
|
warning: variables can be used directly in the `format!` string
--> tests/badssl.rs:19:17
|
19 | let input = format!("GET / HTTP/1.0\r\nHost: {}\r\n\r\n", domain);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#uninlined_format_args
= note: `#[warn(clippy::uninlined_format_args)]` on by default
help: change this to
|
19 - let input = format!("GET / HTTP/1.0\r\nHost: {}\r\n\r\n", domain);
19 + let input = format!("GET / HTTP/1.0\r\nHost: {domain}\r\n\r\n");
|
```
```
warning: the borrowed expression implements the required traits
--> tests/early-data.rs:89:19
|
89 | .args(&["-cert", "./tests/end.cert"])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-cert", "./tests/end.cert"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
= note: `#[warn(clippy::needless_borrow)]` on by default
warning: the borrowed expression implements the required traits
--> tests/early-data.rs:90:19
|
90 | .args(&["-key", "./tests/end.rsa"])
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: change this to: `["-key", "./tests/end.rsa"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
warning: the borrowed expression implements the required traits
--> tests/early-data.rs:91:19
|
91 | .args(&["-port", "12354"])
| ^^^^^^^^^^^^^^^^^^^ help: change this to: `["-port", "12354"]`
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
```
```
error: large size difference between variants
--> src/lib.rs:354:1
|
354 | / pub enum TlsStream<T> {
355 | | Client(client::TlsStream<T>),
| | ---------------------------- the second-largest variant contains at least 0 bytes
356 | | Server(server::TlsStream<T>),
| | ---------------------------- the largest variant contains at least 1504 bytes
357 | | }
| |_^ the entire enum is at least 0 bytes
|
= note: `-D clippy::large-enum-variant` implied by `-D warnings`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#large_enum_variant
```