aboutsummaryrefslogtreecommitdiff
path: root/src/commands/mod.rs
diff options
context:
space:
mode:
authorNathan Perry <np@nathanperry.dev>2024-05-08 14:30:21 -0400
committerNathan Perry <np@nathanperry.dev>2024-05-08 14:30:21 -0400
commitfb088b4ff56ed76dabf4e638cb92bc1b9275fbcc (patch)
tree53cb51db079edafd756cae6a3d5fc4fae829429c /src/commands/mod.rs
parent47817c4166937af24041a93e56ad9f841bf1e8f1 (diff)
clippy fixes
Diffstat (limited to 'src/commands/mod.rs')
-rw-r--r--src/commands/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/commands/mod.rs b/src/commands/mod.rs
index 3f69a3b..8eac09c 100644
--- a/src/commands/mod.rs
+++ b/src/commands/mod.rs
@@ -36,7 +36,7 @@ pub fn register_commands(f: StandardFramework) -> StandardFramework {
result.help(&help::HELP).unrecognised_command(|ctx, msg, unrec| {
Box::pin(async move {
- let url = match msg.content.split_whitespace().skip(1).next() {
+ let url = match msg.content.split_whitespace().nth(1) {
Some(x) if x.starts_with("http") => x,
_ => {
info!("bad command formatting: '{}'", unrec);