Skip to content

Commit

Permalink
fix(http): resolve new clippy lints (twilight-rs#2091)
Browse files Browse the repository at this point in the history

This fixes some clippy errors that seem to have been introduced in the latest rust updates.
  • Loading branch information
suneettipirneni authored Jan 28, 2023
1 parent 3b6746f commit 1aa8369
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions twilight-http/src/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3113,10 +3113,7 @@ mod tests {
};
assert_eq!(
route.to_string(),
format!(
"applications/{application_id}/commands?with_localizations=true",
application_id = APPLICATION_ID
)
format!("applications/{APPLICATION_ID}/commands?with_localizations=true")
);

let route = Route::GetGlobalCommands {
Expand Down Expand Up @@ -3168,9 +3165,7 @@ mod tests {
assert_eq!(
route.to_string(),
format!(
"applications/{application_id}/guilds/{guild_id}/commands?with_localizations=true",
application_id = APPLICATION_ID,
guild_id = GUILD_ID
"applications/{APPLICATION_ID}/guilds/{GUILD_ID}/commands?with_localizations=true"
)
);

Expand Down

0 comments on commit 1aa8369

Please sign in to comment.