Skip to content

Commit

Permalink
commands(tmdb): fix unnecessary dereference
Browse files Browse the repository at this point in the history
  • Loading branch information
evieluvsrainbows committed Jul 29, 2024
1 parent 2df7f87 commit 7460dea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/search/tmdb/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub async fn show(context: Context<'_>, #[description = "The TV series to look u
let api_key = &data.config.api.entertainment.tmdb;
let client = &data.reqwest_container;
let endpoint = "https://api.themoviedb.org/3/search/tv";
let response = client.get(endpoint).query(&[("api_key", &*api_key), ("query", &name)]);
let response = client.get(endpoint).query(&[("api_key", api_key), ("query", &name)]);
let result: SearchResponse = response.send().await?.json().await?;
let results = result.results;
if results.is_empty() {
Expand Down

0 comments on commit 7460dea

Please sign in to comment.