Less authoritative stable_sort_primitive message

This commit is contained in:
bing 2022-04-18 14:42:24 +08:00
parent e5ebece910
commit 7a4d07105f
2 changed files with 9 additions and 9 deletions

View file

@ -30,7 +30,7 @@ declare_clippy_lint! {
/// ```
#[clippy::version = "1.47.0"]
pub STABLE_SORT_PRIMITIVE,
perf,
pedantic,
"use of sort() when sort_unstable() is equivalent"
}
@ -126,7 +126,7 @@ impl LateLintPass<'_> for StableSortPrimitive {
Applicability::MachineApplicable,
);
diag.note(
"an unstable sort would perform faster without any observable difference for this data type",
"an unstable sort typically performs faster without any observable difference for this data type",
);
},
);