From f230ae6fd52001e9d61ed8f51a1e8065854efabf Mon Sep 17 00:00:00 2001 From: Kerollmops Date: Wed, 25 Aug 2021 17:44:16 +0200 Subject: [PATCH] Introduce the reset_sortable_fields Settings method --- milli/src/update/settings.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/milli/src/update/settings.rs b/milli/src/update/settings.rs index c0b5e4549..1d0e15cff 100644 --- a/milli/src/update/settings.rs +++ b/milli/src/update/settings.rs @@ -141,6 +141,10 @@ impl<'a, 't, 'u, 'i> Settings<'a, 't, 'u, 'i> { self.sortable_fields = Setting::Set(names); } + pub fn reset_sortable_fields(&mut self) { + self.sortable_fields = Setting::Reset; + } + pub fn reset_criteria(&mut self) { self.criteria = Setting::Reset; }