mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-06-14 11:29:22 +00:00
Fixing clippy
This commit is contained in:
parent
eea8d0e623
commit
5296716342
|
@ -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();
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue