Fixing clippy

This commit is contained in:
Dessalines 2023-03-17 09:48:06 -04:00
parent eea8d0e623
commit 5296716342
2 changed files with 1 additions and 5 deletions

View file

@ -39,7 +39,6 @@ fn html_to_site_metadata(html_bytes: &[u8]) -> Result<SiteMetadata, LemmyError>
let first_line = html
.trim_start()
.lines()
.into_iter()
.next()
.ok_or_else(|| LemmyError::from_message("No lines in html"))?
.to_lowercase();

View file

@ -242,10 +242,7 @@ fn heartbeat(
let _ = session.close(None).await;
chat_server
.handle_disconnect(&connection_id)
.expect(&format!(
"could not disconnect connection_id: {} from chat_server",
connection_id
));
.expect("Could not disconnect due to heartbeat timeout");
break;
}
if session.ping(b"").await.is_err() {