diff --git a/src/platform/curseforge.rs b/src/platform/curseforge.rs index db88982..fd6797f 100644 --- a/src/platform/curseforge.rs +++ b/src/platform/curseforge.rs @@ -32,7 +32,7 @@ impl CurseForgePlatform { } } - pub fn with_client(client: Arc, api_key: Option) -> Self { + pub const fn with_client(client: Arc, api_key: Option) -> Self { Self { client, api_key } } diff --git a/src/platform/modrinth.rs b/src/platform/modrinth.rs index 94ebf84..87eed5a 100644 --- a/src/platform/modrinth.rs +++ b/src/platform/modrinth.rs @@ -24,7 +24,7 @@ impl ModrinthPlatform { } } - pub fn with_client(client: Arc) -> Self { + pub const fn with_client(client: Arc) -> Self { Self { client } } diff --git a/src/utils/flexver.rs b/src/utils/flexver.rs index 71575c2..1d562d3 100644 --- a/src/utils/flexver.rs +++ b/src/utils/flexver.rs @@ -187,7 +187,7 @@ impl Iterator for VersionComparisonIterator { fn next(&mut self) -> Option { let item = (self.left.pop_front(), self.right.pop_front()); - if let (None, None) = item { + if item == (None, None) { None } else { Some(item)