Skip to content

Commit

Permalink
chore: make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
washbin committed Oct 12, 2022
1 parent 8a75327 commit 0aa3c35
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/commands/hero.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,15 @@ pub async fn run(ctx: Context, command: ApplicationCommandInteraction, hero: Her
pull_req_cloned +=
&format!("<:reply:1029065416905076808>[{}]({})\n", pr.title, pr.url);
} else {
pull_req_cloned += &format!("<:reply:1029065416905076808>Not Availible\n");
pull_req_cloned += "<:reply:1029065416905076808>Not Availible\n";
}
} else if hero.pulls[index].title.is_empty() {
pull_req_cloned += "<:reply_multi:1029067132572549142>Not Availible\n";
} else {
if hero.pulls[index].title.is_empty() {
pull_req_cloned += &format!("<:reply_multi:1029067132572549142>Not Availible\n");
} else {
pull_req_cloned += &format!(
"<:reply_multi:1029067132572549142>[{}]({})\n",
pr.title, pr.url
);
}
pull_req_cloned += &format!(
"<:reply_multi:1029067132572549142>[{}]({})\n",
pr.title, pr.url
);
}

pull_req = pull_req_cloned
Expand All @@ -62,7 +60,7 @@ pub async fn run(ctx: Context, command: ApplicationCommandInteraction, hero: Her
"`ℹ️` **Information**\n<:reply_multi:1029067132572549142>**Name:** `{}`\n<:reply_multi:1029067132572549142>**Location:** `{}`\n<:reply_multi:1029067132572549142>**Bio:** {}\n<:reply_multi:1029067132572549142>**Total PRs:** `{}`\n<:reply:1029065416905076808>**Last Activity:** {}\n\n`📙` **Socials**\n<:gh:1029368861776167004> **GitHub:** https://github.com/{}\n<:lkdn:1029410421641326755> **LinkedIn:** {}\n<:twitter:1029410910432935936> **Twitter:** {}\n<:discord:1029412089170767922> **Discord:** {}\n\n`🔗` **Last 3 PRs**\n{}",
hero.name.unwrap_or_else(|| "Unknown".to_string()),
hero.location.unwrap_or_else(|| "Unknown".to_string()),
hero.bio.unwrap_or_else(|| "Unknown".to_string()).to_string(),
hero.bio.unwrap_or_else(|| "Unknown".to_string()),
if let Some(pulls) = hero.total_pulls {
format!("{}", pulls)
} else {
Expand Down

0 comments on commit 0aa3c35

Please sign in to comment.