mirror of
https://github.com/modrinth/code.git
synced 2026-08-27 10:04:52 +00:00
Fix Clippy lints (#3494)
* chore: fix some Clippy lints * chore(labrinth): more Clippy fixes
This commit is contained in:
@@ -188,7 +188,7 @@ pub async fn version_create(
|
||||
// Handle project type via file extension prediction
|
||||
let mut project_type = None;
|
||||
for file_part in &legacy_create.file_parts {
|
||||
if let Some(ext) = file_part.split('.').last() {
|
||||
if let Some(ext) = file_part.split('.').next_back() {
|
||||
match ext {
|
||||
"mrpack" | "mrpack-primary" => {
|
||||
project_type = Some("modpack");
|
||||
|
||||
Reference in New Issue
Block a user