Format code

This commit is contained in:
Vansh Nath 2025-04-07 11:46:10 +02:00
parent 284e887f46
commit f6be795c88
No known key found for this signature in database
GPG Key ID: 709BF3EAFB217A96

View File

@ -180,7 +180,7 @@ impl<T> NuMatcher<'_, T> {
/// Get all the items that matched (sorted)
pub fn results(self) -> Vec<T> {
match self.state {
State::Prefix { mut items, .. } | State::Substring { mut items , ..} => {
State::Prefix { mut items, .. } | State::Substring { mut items, .. } => {
items.sort_by(|(haystack1, _), (haystack2, _)| {
let cmp_sensitive = haystack1.cmp(haystack2);
if self.options.case_sensitive {