Skip to content

Commit 254bf5f

Browse files
Fix mod loader picker
1 parent 7bcb8b9 commit 254bf5f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/subcommands/profile/mod.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,13 @@ use std::{
2323

2424
#[expect(clippy::unwrap_used, reason = "All variants are present")]
2525
pub fn pick_mod_loader(default: Option<&ModLoader>) -> Result<ModLoader> {
26-
let options = vec![
26+
let options = [
2727
ModLoader::Fabric,
2828
ModLoader::Quilt,
2929
ModLoader::NeoForge,
3030
ModLoader::Forge,
3131
];
32-
let mut picker = Select::new("Which mod loader do you use?", options.clone())
33-
.without_filtering()
34-
.without_help_message();
32+
let mut picker = Select::new("Which mod loader do you use?", options.into());
3533
if let Some(default) = default {
3634
picker.starting_cursor = options.iter().position(|l| l == default).unwrap();
3735
}

0 commit comments

Comments
 (0)