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);