From 8eb59bc50022fd393210453157c6c7143d782174 Mon Sep 17 00:00:00 2001 From: xtqqczze <45661989+xtqqczze@users.noreply.github.com> Date: Sat, 17 Jan 2026 16:04:22 +0000 Subject: [PATCH] clippy: fix stable_sort_primitive lint https://rust-lang.github.io/rust-clippy/master/index.html#stable_sort_primitive Part of #12343 --- Cargo.toml | 1 + src/localization/settings.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index b33999052..f5c501705 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -207,6 +207,7 @@ new_without_default = "allow" option_map_unit_fn = "allow" ptr_offset_by_literal = "warn" ref_option = "warn" +stable_sort_primitive = "warn" unnecessary_semicolon = "warn" # We do not want to use the e?print(ln)?! macros. diff --git a/src/localization/settings.rs b/src/localization/settings.rs index c965f8dc0..c63a5f641 100644 --- a/src/localization/settings.rs +++ b/src/localization/settings.rs @@ -403,7 +403,7 @@ fn add_languages<'a, 'b: 'a, LocalizationLanguage: 'a>( } add_languages(&mut language_set, fish_gettext::get_available_languages); let mut language_list = Vec::from_iter(language_set); - language_list.sort(); + language_list.sort_unstable(); let mut languages = WString::new(); for lang in language_list { languages.push_str(lang);