aboutsummaryrefslogtreecommitdiff
path: root/src/lyrics_engine/genius.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lyrics_engine/genius.rs')
-rw-r--r--src/lyrics_engine/genius.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lyrics_engine/genius.rs b/src/lyrics_engine/genius.rs
index f086fee..7326a5f 100644
--- a/src/lyrics_engine/genius.rs
+++ b/src/lyrics_engine/genius.rs
@@ -34,11 +34,7 @@ pub async fn search(url: &str) -> Result<String> {
.map_err(|_| Error::other("Could not perform lyrics search in engine."))?
.json::<GeniusApiResponse>()
.await
- .map_err(|_| {
- Error::other(
- "Lyrics engine returned invalid response from search.",
- )
- })?;
+ .map_err(|_| Error::other("Lyrics engine returned invalid response from search."))?;
let url = response
.response
.hits