various: fix auto-fixable clippy lints
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: I523cd8163d3995efa2f1e8475bbf87316a6a6964
This commit is contained in:
parent
8b2140c057
commit
ace9bcac8a
3 changed files with 3 additions and 3 deletions
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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 }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue