From 9e9705c4b61a5d02c81d9c156e19808fa8dfce2b Mon Sep 17 00:00:00 2001 From: Mark Banner Date: Thu, 3 Oct 2024 16:42:13 +0100 Subject: [PATCH] Rename RefinedConfig for better namespacing --- components/search/src/selector.rs | 4 ++-- components/search/src/types.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/components/search/src/selector.rs b/components/search/src/selector.rs index 84b622b1df..9b0aad2347 100644 --- a/components/search/src/selector.rs +++ b/components/search/src/selector.rs @@ -2,7 +2,7 @@ * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -use crate::{error::Error, RefinedConfig, SearchApiResult, SearchUserEnvironment}; +use crate::{error::Error, RefinedSearchConfig, SearchApiResult, SearchUserEnvironment}; use error_support::handle_error; /// SearchEngineSelector parses the JSON configuration for @@ -40,7 +40,7 @@ impl SearchEngineSelector { pub fn filter_engine_configuration( &self, _user_environment: SearchUserEnvironment, - ) -> SearchApiResult { + ) -> SearchApiResult { Err(Error::NotImplemented) } } diff --git a/components/search/src/types.rs b/components/search/src/types.rs index 90502d783d..af2d1e9ebf 100644 --- a/components/search/src/types.rs +++ b/components/search/src/types.rs @@ -186,7 +186,7 @@ pub struct SearchEngineDefinition { /// Details of the search engines to display to the user, generated as a result /// of processing the search configuration. #[derive(Debug, uniffi::Record)] -pub struct RefinedConfig { +pub struct RefinedSearchConfig { /// A sorted list of engines. Clients may use the engine in the order that /// this list is specified, or they may implement their own order if they /// have other requirements.