mirror of
https://github.com/nushell/nushell.git
synced 2025-06-02 16:16:01 +02:00
Format code
This commit is contained in:
parent
284e887f46
commit
f6be795c88
@ -180,7 +180,7 @@ impl<T> NuMatcher<'_, T> {
|
|||||||
/// Get all the items that matched (sorted)
|
/// Get all the items that matched (sorted)
|
||||||
pub fn results(self) -> Vec<T> {
|
pub fn results(self) -> Vec<T> {
|
||||||
match self.state {
|
match self.state {
|
||||||
State::Prefix { mut items, .. } | State::Substring { mut items , ..} => {
|
State::Prefix { mut items, .. } | State::Substring { mut items, .. } => {
|
||||||
items.sort_by(|(haystack1, _), (haystack2, _)| {
|
items.sort_by(|(haystack1, _), (haystack2, _)| {
|
||||||
let cmp_sensitive = haystack1.cmp(haystack2);
|
let cmp_sensitive = haystack1.cmp(haystack2);
|
||||||
if self.options.case_sensitive {
|
if self.options.case_sensitive {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user