From b3aa94a296f7688f1fb1cd156e2018321b3940fb Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Sat, 7 Dec 2024 19:55:03 +0100 Subject: [PATCH 1/2] chore: fix clippy lints --- src/img_formats.rs | 4 ++-- src/requests.rs | 8 ++++---- src/serializer.rs | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/img_formats.rs b/src/img_formats.rs index ae3bea6..0b439e2 100644 --- a/src/img_formats.rs +++ b/src/img_formats.rs @@ -1,5 +1,5 @@ -/// This file has been automatically generated. DO NOT EDIT. -/// The generation code is located in the `codegen` crate. +// This file has been automatically generated. DO NOT EDIT. +// The generation code is located in the `codegen` crate. /// Format of a Bandcamp image /// diff --git a/src/requests.rs b/src/requests.rs index 07cd872..7720897 100644 --- a/src/requests.rs +++ b/src/requests.rs @@ -67,7 +67,7 @@ impl Bandcamp { let resp = self .client - .post(&format!("{}mobile/24/band_details", API_URL)) + .post(format!("{}mobile/24/band_details", API_URL)) .json(&req) .send() .await? @@ -96,7 +96,7 @@ impl Bandcamp { let resp = self .client - .post(&format!("{}mobile/25/tralbum_details", API_URL)) + .post(format!("{}mobile/25/tralbum_details", API_URL)) .json(&req) .send() .await? @@ -129,7 +129,7 @@ impl Bandcamp { let resp = self .client - .post(&format!( + .post(format!( "{}bcsearch_public_api/1/autocomplete_elastic", API_URL )) @@ -149,7 +149,7 @@ impl Bandcamp { pub async fn feed(&self) -> Result { let resp = self .client - .get(&format!( + .get(format!( "{}mobile/25/feed_older_logged_out?story_groups=featured", API_URL )) diff --git a/src/serializer.rs b/src/serializer.rs index 176c584..15c8fa5 100644 --- a/src/serializer.rs +++ b/src/serializer.rs @@ -22,7 +22,7 @@ pub mod date { ) -> Result { struct DateVisitor; - impl<'de> Visitor<'de> for DateVisitor { + impl Visitor<'_> for DateVisitor { type Value = OffsetDateTime; fn expecting(&self, formatter: &mut std::fmt::Formatter) -> std::fmt::Result { From 254239107cc81fa98aeeeac7b2d3971e4e292fa6 Mon Sep 17 00:00:00 2001 From: ThetaDev Date: Sat, 7 Dec 2024 19:56:33 +0100 Subject: [PATCH 2/2] chore(release): release bandcamp v0.3.4 --- CHANGELOG.md | 7 +++++++ Cargo.toml | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c1078b6..bb52300 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ All notable changes to this project will be documented in this file. +## [v0.3.4](https://code.thetadev.de/ThetaDev/bandcamp/compare/v0.3.3..v0.3.4) - 2024-12-07 + +### ⚙️ Miscellaneous Tasks + +- Fix clippy lints - ([b3aa94a](https://code.thetadev.de/ThetaDev/bandcamp/commit/b3aa94a296f7688f1fb1cd156e2018321b3940fb)) + + ## [v0.3.3](https://code.thetadev.de/ThetaDev/bandcamp/compare/v0.3.2..v0.3.3) - 2024-11-15 ### ⚙️ Miscellaneous Tasks diff --git a/Cargo.toml b/Cargo.toml index 2860a04..b1ad89b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bandcamp" -version = "0.3.3" +version = "0.3.4" edition = "2021" authors = ["ThetaDev "] license = "MIT"