Fix some warnings

This commit is contained in:
Yash Karandikar 2022-01-23 11:00:16 -06:00
parent 85c69ae433
commit be4c706403
Signed by untrusted user: karx
GPG key ID: A794DA2529474BA5

View file

@ -546,12 +546,10 @@ async fn irc_loop(
if has_opened_italic {
computed.push_str("*");
has_opened_italic = false;
}
if has_opened_bold {
computed.push_str("**");
has_opened_bold = false;
}
computed = CONTROL_CHAR_RE.replace_all(&computed, "").to_string();
@ -608,12 +606,10 @@ async fn irc_loop(
if has_opened_italic {
computed.push_str("*");
has_opened_italic = false;
}
if has_opened_bold {
computed.push_str("**");
has_opened_bold = false;
}
channel_id