We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bcb8b9 commit 254bf5fCopy full SHA for 254bf5f
src/subcommands/profile/mod.rs
@@ -23,15 +23,13 @@ use std::{
23
24
#[expect(clippy::unwrap_used, reason = "All variants are present")]
25
pub fn pick_mod_loader(default: Option<&ModLoader>) -> Result<ModLoader> {
26
- let options = vec![
+ let options = [
27
ModLoader::Fabric,
28
ModLoader::Quilt,
29
ModLoader::NeoForge,
30
ModLoader::Forge,
31
];
32
- let mut picker = Select::new("Which mod loader do you use?", options.clone())
33
- .without_filtering()
34
- .without_help_message();
+ let mut picker = Select::new("Which mod loader do you use?", options.into());
35
if let Some(default) = default {
36
picker.starting_cursor = options.iter().position(|l| l == default).unwrap();
37
}
0 commit comments