clippy cleanup
All checks were successful
ci/woodpecker/pr/cargo-checks Pipeline was successful

This commit is contained in:
ModulatingForce 2024-04-03 19:45:18 -04:00
parent 8adab21761
commit fde96ac895
3 changed files with 4 additions and 4 deletions

View file

@ -73,7 +73,8 @@ impl ExecBodyParams {
// filter out all tags that do not have content. // filter out all tags that do not have content.
let tag_contents: Vec<String> = tags.iter().filter_map(|tag| { let tag_contents: Vec<String> = tags.iter().filter_map(|tag| {
if let Some(&Some(ref t)) = map.get(*tag) { // if let Some(&Some(ref t)) = map.get(*tag) {
if let Some(Some(t)) = map.get(*tag) {
Some(t.clone()) Some(t.clone())
} else { } else {
None None
@ -82,7 +83,7 @@ impl ExecBodyParams {
// if no tags got filtered out return the struct. // if no tags got filtered out return the struct.
// else return `None`. // else return `None`.
return if tag_contents.len() == 5 { if tag_contents.len() == 5 {
Some(ReplyParent { Some(ReplyParent {
sender: TwitchUserBasics { sender: TwitchUserBasics {
id: tag_contents[0].clone(), id: tag_contents[0].clone(),

View file

@ -4,7 +4,7 @@ use std::sync::Arc;
use tokio::sync::Mutex; use tokio::sync::Mutex;
use twitch_irc::login::StaticLoginCredentials; use twitch_irc::login::StaticLoginCredentials;
use twitch_irc::message::{PrivmsgMessage, ReplyToMessage}; use twitch_irc::message::ReplyToMessage;
use twitch_irc::transport::tcp::{TCPTransport, TLS}; use twitch_irc::transport::tcp::{TCPTransport, TLS};
use twitch_irc::TwitchIRCClient; use twitch_irc::TwitchIRCClient;

View file

@ -147,7 +147,6 @@ async fn rp(params : ExecBodyParams)
params.clone() params.clone()
).await; ).await;
} }
else else
{ {
println!("no reply") println!("no reply")