mirror of
https://github.com/samsonjs/agate.git
synced 2026-03-25 09:05:50 +00:00
fix formatting and lints
This commit is contained in:
parent
7bf805b26d
commit
48da55cf42
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue