various: fix auto-fixable clippy lints

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I523cd8163d3995efa2f1e8475bbf87316a6a6964
This commit is contained in:
raf 2026-04-21 17:37:48 +03:00
commit ace9bcac8a
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF
3 changed files with 3 additions and 3 deletions

View file

@ -32,7 +32,7 @@ impl CurseForgePlatform {
} }
} }
pub fn with_client(client: Arc<Client>, api_key: Option<String>) -> Self { pub const fn with_client(client: Arc<Client>, api_key: Option<String>) -> Self {
Self { client, api_key } Self { client, api_key }
} }

View file

@ -24,7 +24,7 @@ impl ModrinthPlatform {
} }
} }
pub fn with_client(client: Arc<Client>) -> Self { pub const fn with_client(client: Arc<Client>) -> Self {
Self { client } Self { client }
} }

View file

@ -187,7 +187,7 @@ impl Iterator for VersionComparisonIterator {
fn next(&mut self) -> Option<Self::Item> { fn next(&mut self) -> Option<Self::Item> {
let item = (self.left.pop_front(), self.right.pop_front()); let item = (self.left.pop_front(), self.right.pop_front());
if let (None, None) = item { if item == (None, None) {
None None
} else { } else {
Some(item) Some(item)