follow the clippy lints, they will guide you

This commit is contained in:
missing 2022-06-17 13:35:33 -05:00
parent 35d1b9762f
commit c0a896e7c5

View file

@ -46,11 +46,9 @@ pub async fn irc_loop(
}
while let Some(orig_message) = stream.next().await.transpose()? {
match orig_message.command {
Command::Response(response, args) => {
if let Command::Response(response, args) = orig_message.command {
use irc::client::prelude::Response;
// if let Response::RPL_NAMREPLY = response {
if response == Response::RPL_NAMREPLY {
let channel = args[2].to_string();
let users = args[3]
@ -62,8 +60,6 @@ pub async fn irc_loop(
}
continue;
}
_ => {}
};
let nickname = unwrap_or_continue!(orig_message.source_nickname());