fix formatting and lints

This commit is contained in:
Johann150 2023-03-18 08:10:32 +01:00
parent 7bf805b26d
commit 48da55cf42
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1

View file

@ -166,7 +166,7 @@ fn index_page() {
#[cfg(unix)]
#[test]
fn index_page_unix() {
use rustls::{Certificate, ClientConnection, RootCertStore};
use rustls::{Certificate, ClientConnection, RootCertStore};
let sock_path = std::env::temp_dir().join("agate-test-unix-socket");
@ -208,7 +208,7 @@ fn index_page_unix() {
write!(tls, "gemini://example.com\r\n").unwrap();
let mut buf = [0; 16];
tls.read(&mut buf).unwrap();
let _ = tls.read(&mut buf);
assert_eq!(&buf, b"20 text/gemini\r\n");